Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "unknown"
Version 版本信息,在编译时使用ldflags进行覆盖
Functions ¶
func LoadConfig ¶
func LoadConfig(fileName string, fileFolder string, kind string, fs embed.FS, config any) (bool, error)
LoadConfig creat and load config, return exists(file) kind: json / yaml
func UpdateConfig ¶
UpdateConfig update config.yml
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.