xstring

package
Version: v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 10 Imported by: 1

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 added in v0.4.0

func JSON(obj interface{}) string

JSON ...

func JSONBytes added in v0.4.0

func JSONBytes(obj interface{}) []byte

JSONBytes ...

func ObjectName

func ObjectName(i interface{}) string

ObjectName ...

func PrettyJSON added in v0.4.0

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