Documentation
¶
Index ¶
- func ArrayIntToString(vals []int) []string
- func CompareNoCase(s1, s2 string) bool
- func ComparePath(s1, s2 string) bool
- func EncodeHexWithSpace(dst, src []byte) int
- func EncodeHexWithSpaceLen(l int) int
- func FindString(line, key string) string
- func FormatSize(size int64) string
- func GetCode(data []byte) (code string, offset int64)
- func GetFileCode(file multipart.File) (code string)
- func GetIndex(line string, key string) int
- func GetNameStruct(class interface{}, isSnake ...bool) (title string)
- func GetStructValues(class interface{}) (values []interface{})
- func GetTitlesFromStruct(class interface{}) (titles []string)
- func IsAlpha(b byte) bool
- func IsCrLf(r rune) bool
- func IsDigit(b byte) bool
- func String(data []byte) string
- func StringInArray(str string, stringArray []string) bool
- func ToString(f float64) (s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeHexWithSpaceLen ¶
EncodeHexWithSpaceLen 带空格编码16进制长度
func GetFileCode ¶
GetFileCode 获取文件 编码 返回空置认为是 utf8 编码
func GetNameStruct ¶
GetNameStruct 获取类名
func GetStructValues ¶
func GetStructValues(class interface{}) (values []interface{})
GetStructValues 获取字段对应的值
func GetTitlesFromStruct ¶
func GetTitlesFromStruct(class interface{}) (titles []string)
GetTitlesFromStruct 获取类中的成员变量和变量对应的值
func StringInArray ¶
StringInArray 字符串是否在一个数组中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.