pkg

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TextBlack = iota + 30
	TextRed
	TextGreen
	TextYellow
	TextBlue
	TextMagenta
	TextCyan
	TextWhite
)
View Source
const (
	TrafficKey = "X-Request-ID"
	LoggerKey  = "_go-admin-logger-request"
)

Variables

This section is empty.

Functions

func Black

func Black(msg string) string

func Blue

func Blue(msg string) string

func BuildMap

func BuildMap(keys []string, value string, dataType enum.DataType) map[string]any

func CompareHashAndPassword

func CompareHashAndPassword(hash string, password string) (bool, error)

func Cyan

func Cyan(msg string) string

func DeepCopy

func DeepCopy(value any) any

func GenerateMsgIDFromContext

func GenerateMsgIDFromContext(c *gin.Context) string

func GetCreatorField

func GetCreatorField() string

func GetNodeName

func GetNodeName() string

func GetProjectName

func GetProjectName() string

func GetStage

func GetStage() string

func Green

func Green(msg string) string

func Magenta

func Magenta(msg string) string

func MergeMap

func MergeMap(destination, source map[string]any) map[string]any

func MergeMapDepth

func MergeMapDepth(destination, source map[string]any) map[string]any

func MergeMapsDepth

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

func ModelDeepCopy

func ModelDeepCopy(model mgm.Model) mgm.Model

func ParseEnvTemplate

func ParseEnvTemplate(text string) string

func PathCreate

func PathCreate(dir string) error

PathCreate create path

func PathExist

func PathExist(addr string) bool

PathExist path exist

func Red

func Red(msg string) string

func SetColor

func SetColor(msg string, conf, bg, text int) string

func SetCreator

func SetCreator(data any, id string)

func SetValue

func SetValue(data any, key string, value any)

func SupportCreator

func SupportCreator(data any) bool

func SupportMultiTenant

func SupportMultiTenant(data any) bool

func TablerDeepCopy

func TablerDeepCopy(model schema.Tabler) schema.Tabler

func Translate

func Translate(from, to any)

Translate 结构体环转

func White

func White(msg string) string

func Yellow

func Yellow(msg string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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