xstring

package
v1.1.6 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 returns the Function's name of given pointer.

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 returns the object's path and name of given pointer. Deprecated: this function will be moved to internal package, user should not use it any more.

func PrettyJSON

func PrettyJSON(obj interface{}) string

PrettyJSON ...

func PrettyJSONBytes

func PrettyJSONBytes(obj interface{}) []byte

PrettyJSONBytes ...

func ToCamelCase

func ToCamelCase(str string) string

ToCamelCase convert a string to UpperCamelCase.

func ToSnakeCase

func ToSnakeCase(str string) string

ToSnakeCase convert a string to snake_case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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