Documentation ¶
Index ¶
- Variables
- func Addr2Hex(str string) (string, error)
- func AnyBlank(ss []string) bool
- func CallerName(skip int) string
- func FunctionName(i interface{}) string
- func GenerateID() string
- func GenerateUUID(seedTime time.Time) string
- func Hex2Addr(str string) (string, error)
- func Json(obj interface{}) string
- func JsonBytes(obj interface{}) []byte
- func KVInt(key string, value int) string
- func KVInt32(key string, value int32) string
- func KVInt64(key string, value int64) string
- func KVInterface(key string, value interface{}) string
- func KVString(key string, value string) string
- func KVTime(key string, value time.Time) string
- func ObjectName(i interface{}) string
- func PrettyJSONBytes(obj interface{}) []byte
- func PrettyJson(obj interface{}) string
- func SugarFormat(vals ...interface{}) string
- func Title(title string) string
- func ToCacheKey(prefix, s1 string, s ...string) string
- func ToCamelCase(s string) string
- func ToLowerFirstCamelCase(s string) string
- func ToLowerSnakeCase(s string) string
- func ToUpperFirst(s string) string
- type Formatter
- type Strings
Constants ¶
This section is empty.
Variables ¶
View Source
var OmitDefaultAPI = jsoniter.Config{ SortMapKeys: true, UseNumber: true, CaseSensitive: true, EscapeHTML: true, ValidateJsonRawMessage: true, }.Froze()
OmitDefaultAPI ...
Functions ¶
func GenerateUUID ¶
GenerateUUID simply generates an unique UID.
func KVInterface ¶
func SugarFormat ¶
func SugarFormat(vals ...interface{}) string
func ToCacheKey ¶
func ToCamelCase ¶
ToCamelCase the given string in camelcase format.
func ToLowerFirstCamelCase ¶
ToLowerFirstCamelCase returns the given string in camelcase formatted string but with the first letter being lowercase.
func ToLowerSnakeCase ¶
ToLowerSnakeCase the given string in snake-case format.
func ToUpperFirst ¶
ToUpperFirst returns the given string with the first letter being uppercase.
Types ¶
Click to show internal directories.
Click to hide internal directories.