Documentation ¶
Index ¶
- Variables
- func CallerName(skip int) string
- func FunctionName(i interface{}) string
- func GenerateID() string
- func GenerateUUID(seedTime time.Time) string
- func JSON(obj interface{}) string
- func JSONBytes(obj interface{}) []byte
- func ObjectName(i interface{}) string
- func PrettyJSON(obj interface{}) string
- func PrettyJSONBytes(obj interface{}) []byte
- func ToCamelCase(str string) string
- func ToSnakeCase(str string) string
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 FunctionName ¶
func FunctionName(i interface{}) string
FunctionName returns the Function's name of given pointer.
func GenerateUUID ¶
GenerateUUID simply generates an unique UID.
func ObjectName ¶
func ObjectName(i interface{}) string
ObjectName returns the object's path and name of given pointer. Deprecated: this function will be moved to internal package, user should not use it anymore.
func ToCamelCase ¶
ToCamelCase convert a string to UpperCamelCase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.