utils

package
v0.0.0-...-23b3bcd Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStructFromInterface

func CreateStructFromInterface(a interface{}) interface{}

func CreateStructFromInterfacePtr

func CreateStructFromInterfacePtr(a interface{}) interface{}

func CurrentDir

func CurrentDir() string

func DigestJsonStruct

func DigestJsonStruct(obj any, skipPrefix string) ([]byte, error)

func DigestJsonText

func DigestJsonText(data, skipPrefix string) ([]byte, error)

func GetTimeGMT

func GetTimeGMT() string

func IsFileExists

func IsFileExists(path string) bool

func NewUUID

func NewUUID() string

func SnowflakeId

func SnowflakeId() uint64

func SnowflakeStringId

func SnowflakeStringId() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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