base

package
v0.0.0-...-19daee8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllIntEqual

func AllIntEqual(s []int) (bool, error)

func EqualMap

func EqualMap(x, y interface{}) bool

func EqualSlice

func EqualSlice(x, y interface{}) (bool, error)

func GetFieldName

func GetFieldName(s interface{}) ([]string, error)

Get struct field name and return field slice

func GetTagName

func GetTagName(s interface{}) ([]string, error)

Get struct tags value or return field value

func IsExists

func IsExists(s []string, e string) bool

func SliceFilter

func SliceFilter(slice []string, elem string) []string

func SliceHelper

func SliceHelper(slicePtr interface{}) *sliceHelper

参数slicePtr必须是指向slice的指针

func StringCut

func StringCut(s string, fs string) string

func StringFmtOneLine

func StringFmtOneLine(s string) string

func TempFunc

func TempFunc() template.FuncMap

This function will collect template funcs of myself for template.Funcs()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL