Documentation ¶
Index ¶
- Variables
- func EnsureDir(dirName string) error
- func Get[T any](m *DependencyManager, t T) T
- func GetAbbr(name string) string
- func GetConfig() *conf.Bootstrap
- func GetEnv() (string, string, string)
- func GetID(id string) int64
- func GetIDList(idList []string) []int64
- func GetIDString(id int64) string
- func GetLogger() *zap.Logger
- func ResetLogger()
- type DependencyManager
- type RegisterFunc
- type ZapLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Name is the name of the compiled software. Name string // Version is the version of the compiled software. Version string )
go build -ldflags "-X main.Version=x.y.z"
Functions ¶
func Get ¶
func Get[T any](m *DependencyManager, t T) T
func GetIDString ¶
func ResetLogger ¶
func ResetLogger()
Types ¶
type DependencyManager ¶
func (*DependencyManager) Register ¶
func (d *DependencyManager) Register(registerType any, f RegisterFunc)
type RegisterFunc ¶
type RegisterFunc func() any
Click to show internal directories.
Click to hide internal directories.