xstring

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 CallerName

func CallerName(skip int) string

CallerName ...

func FunctionName

func FunctionName(i interface{}) string

FunctionName ...

func GenerateID

func GenerateID() string

GenerateID simply generates an ID.

func GenerateUUID

func GenerateUUID(seedTime time.Time) string

GenerateUUID simply generates an unique UID.

func JSON

func JSON(obj interface{}) string

JSON ...

func JSONBytes

func JSONBytes(obj interface{}) []byte

JSONBytes ...

func ObjectName

func ObjectName(i interface{}) string

ObjectName ...

func PrettyJSON

func PrettyJSON(obj interface{}) string

PrettyJSON ...

func PrettyJSONBytes

func PrettyJSONBytes(obj interface{}) []byte

PrettyJSONBytes ...

func ToCamelCase

func ToCamelCase(str string) string

ToCamelCase 转为驼峰格式

func ToSnakeCase

func ToSnakeCase(str string) string

ToSnakeCase 转为snake格式

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL