Documentation ¶
Index ¶
- Constants
- func Black(msg string) string
- func Blue(msg string) string
- func BuildMap(keys []string, value string, dataType enum.DataType) map[string]any
- func CompareHashAndPassword(hash string, password string) (bool, error)
- func Cyan(msg string) string
- func DeepCopy(d any) any
- func GenerateMsgIDFromContext(c *gin.Context) string
- func Green(msg string) string
- func Magenta(msg string) 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 Red(msg string) string
- func SetColor(msg string, conf, bg, text int) string
- func TablerDeepCopy(m schema.Tabler) schema.Tabler
- func Translate(from, to interface{})
- func White(msg string) string
- func Yellow(msg string) string
Constants ¶
View Source
const ( TextBlack = iota + 30 TextRed TextGreen TextYellow TextBlue TextMagenta TextCyan TextWhite )
View Source
const ( // TrafficKey traffic key TrafficKey = "X-Request-ID" // LoggerKey logger key LoggerKey = "_go-admin-logger-request" )
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword compare hash and password
func GenerateMsgIDFromContext ¶
GenerateMsgIDFromContext 生成msgID
func MergeMapDepth ¶
MergeMapDepth deep merge map
func MergeMapsDepth ¶
MergeMapsDepth deep merge multi map
func TablerDeepCopy ¶
TablerDeepCopy model deep copy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.