Documentation ¶
Index ¶
- func Bytes2str(b []byte) string
- func ClearByteMemory(src []byte)
- func ClearStringMemory(src *string)
- func HasPrefix(key, pre, delimiter string) bool
- func MinInt(x, y int) int
- func SplitFirstSep(s, sep string) string
- func SplitToTwo(s, sep string) (string, string)
- func Str2bytes(s string) []byte
- func StrInSlice(a string, list []string) bool
- func StrToCamelCase(s string) string
- func StrToLowerFirstCamelCase(s string) string
- func StrToLowerSnakeCase(s string) string
- func StrToSnakeCase(s string) string
- func StrToUpperFirst(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearByteMemory ¶
func ClearByteMemory(src []byte)
ClearByteMemory clear byte memory, for very sensitive security related data you should clear it in memory after use
func ClearStringMemory ¶
func ClearStringMemory(src *string)
ClearStringMemory clear string memory, for very sensitive security related data //you should clear it in memory after use
func StrToCamelCase ¶
StrToCamelCase converts from underscore separated form to camel case form.
func StrToLowerFirstCamelCase ¶
ToLowerFirstCamelCase returns the given string in camelcase formatted string but with the first letter being lowercase.
func StrToLowerSnakeCase ¶
StrToLowerSnakeCase the given string in snake-case format.
func StrToSnakeCase ¶
StrToSnakeCase converts from camel case form to underscore separated form.
func StrToUpperFirst ¶
StrToUpperFirst returns the given string with the first letter being uppercase.
Types ¶
This section is empty.