Documentation ¶
Index ¶
- func CamelToSnake(s string) string
- func CombineSortedWithSep(sep string, strs []string) string
- func CompareStringPointer(a, b *string) bool
- func FloatVal(s string) float64
- func FormatGo(src []byte) ([]byte, error)
- func GetStringByPointer(pointer *string) string
- func IntVal(s string) int64
- func JsonEncode(v interface{}) string
- func Lcfirst(s string) string
- func MD5(str string) string
- func RandStr(n int) string
- func Ucfirst(s string) string
- func UintVal(s string) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineSortedWithSep ¶
CombineSortedWithSep combines a slice of strings into a single string, with the given separator between each string. The strings are sorted.
func CompareStringPointer ¶ added in v0.9.5
CompareStringPointer compare string pointer return true if a and b are both nil or a == b
func GetStringByPointer ¶ added in v0.9.5
GetStringByPointer get string by pointer return "" if pointer is nil
func RandStr ¶ added in v0.9.4
Reference: https://xie.infoq.cn/article/f274571178f1bbe6ff8d974f3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.