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(value any) any
- func GenerateMsgIDFromContext(c *gin.Context) string
- func GetCreatorField() string
- func GetNodeName() string
- func GetProjectName() string
- func GetStage() string
- func Green(msg string) string
- func Magenta(msg string) string
- func MergeMap(destination, source map[string]any) map[string]any
- func MergeMapDepth(destination, source map[string]any) map[string]any
- func MergeMapsDepth(maps ...map[string]any) map[string]any
- func ModelDeepCopy(model mgm.Model) mgm.Model
- func ParseEnvTemplate(text string) string
- func PathCreate(dir string) error
- func PathExist(addr string) bool
- func Red(msg string) string
- func SetColor(msg string, conf, bg, text int) string
- func SetCreator(data any, id string)
- func SetValue(data any, key string, value any)
- func SupportCreator(data any) bool
- func SupportMultiTenant(data any) bool
- func TablerDeepCopy(model schema.Tabler) schema.Tabler
- func Translate(from, to any)
- 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 = "X-Request-ID" LoggerKey = "_go-admin-logger-request" )
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
func GetCreatorField ¶
func GetCreatorField() string
func GetNodeName ¶
func GetNodeName() string
func GetProjectName ¶
func GetProjectName() string
func ParseEnvTemplate ¶
func SetCreator ¶
func SupportCreator ¶
func SupportMultiTenant ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.