Documentation ¶
Index ¶
- func GenId() string
- func GenLogId() string
- func GetCtxLogId(ctx context.Context) string
- func IsLocalEnv() bool
- func JsonMarshal(ctx context.Context, v interface{}) string
- func JsonUnmarshal(ctx context.Context, from string, to interface{}) error
- func NewCtxWithLogId(ctx context.Context) context.Context
- func TimeFormatSerialString(target time.Time) string
- func TimeFormatString(target time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCtxLogId ¶
func IsLocalEnv ¶
func IsLocalEnv() bool
func JsonMarshal ¶
func JsonUnmarshal ¶
JsonUnmarshal 反序列化,to为空结构体的指针
func TimeFormatSerialString ¶
func TimeFormatString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.