util

package
v0.0.0-...-4369ac2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenId

func GenId() string

func GenLogId

func GenLogId() string

func GetCtxLogId

func GetCtxLogId(ctx context.Context) string

func IsLocalEnv

func IsLocalEnv() bool

func JsonMarshal

func JsonMarshal(ctx context.Context, v interface{}) string

func JsonUnmarshal

func JsonUnmarshal(ctx context.Context, from string, to interface{}) error

JsonUnmarshal 反序列化,to为空结构体的指针

func NewCtxWithLogId

func NewCtxWithLogId(ctx context.Context) context.Context

func TimeFormatSerialString

func TimeFormatSerialString(target time.Time) string

func TimeFormatString

func TimeFormatString(target time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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