pkg

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TrafficKey = "X-Request-Id"
	LoggerKey  = "_go-admin-logger-request"
)

Variables

This section is empty.

Functions

func BuildMap added in v0.0.9

func BuildMap(keys []string, value string) map[string]any

func CompareHashAndPassword

func CompareHashAndPassword(e string, p string) (bool, error)

func DeepCopy added in v0.0.9

func DeepCopy(d any) any

DeepCopy deep copy

func GenerateMsgIDFromContext

func GenerateMsgIDFromContext(c *gin.Context) string

GenerateMsgIDFromContext 生成msgID

func MergeMap added in v0.0.9

func MergeMap(m1, m2 map[string]any) map[string]any

MergeMap merge map

func MergeMapDepth added in v0.0.9

func MergeMapDepth(m1, m2 map[string]any) map[string]any

MergeMapDepth deep merge map

func MergeMapsDepth added in v0.0.9

func MergeMapsDepth(ms ...map[string]any) map[string]any

MergeMapsDepth deep merge multi map

func ModelDeepCopy added in v0.0.9

func ModelDeepCopy(m mgm.Model) mgm.Model

ModelDeepCopy model deep copy

func Translate

func Translate(from, to interface{})

Translate 结构体环转

Types

This section is empty.

Jump to

Keyboard shortcuts

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