Documentation
¶
Index ¶
- Constants
- func BuildMap(keys []string, value string) map[string]any
- func CompareHashAndPassword(e string, p string) (bool, error)
- func DeepCopy(d any) any
- func GenerateMsgIDFromContext(c *gin.Context) string
- func MergeMap(m1, m2 map[string]any) map[string]any
- func MergeMapDepth(m1, m2 map[string]any) map[string]any
- func MergeMapsDepth(ms ...map[string]any) map[string]any
- func ModelDeepCopy(m mgm.Model) mgm.Model
- func Translate(from, to interface{})
Constants ¶
View Source
const ( TrafficKey = "X-Request-Id" LoggerKey = "_go-admin-logger-request" )
Variables ¶
This section is empty.
Functions ¶
func GenerateMsgIDFromContext ¶
GenerateMsgIDFromContext 生成msgID
func MergeMapDepth ¶ added in v0.0.9
MergeMapDepth deep merge map
func MergeMapsDepth ¶ added in v0.0.9
MergeMapsDepth deep merge multi map
func ModelDeepCopy ¶ added in v0.0.9
func ModelDeepCopy(m mgm.Model) mgm.Model
ModelDeepCopy model deep copy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.