Documentation ¶
Index ¶
- Variables
- func ConfigDecrypt(cipherText []byte, keyLen int) ([]byte, error)
- func ExistConfig(configFileName string) bool
- func InitConfig()
- func InitConfigV1[T any](confFile string, stru T)
- func ReadConfig[T any](fileName string, stru T) error
- func ReadConfig2Byte(fileName string) ([]byte, error)
- func ReadConfigForDecrypt[T any](fileName string, stru T, keyLen int) error
- func UnmarshalConfig[T any](bs []byte, stru T) error
Constants ¶
This section is empty.
Variables ¶
View Source
var C config
使用者根据自己需要修改这个结构体
Functions ¶
func ConfigDecrypt ¶ added in v1.5.25
Decrypt 解密
func ExistConfig ¶ added in v1.5.25
func InitConfig ¶ added in v1.5.25
func InitConfig()
func ReadConfig2Byte ¶ added in v1.5.25
func ReadConfigForDecrypt ¶ added in v1.5.25
读取密文的配置文件
func UnmarshalConfig ¶ added in v1.5.25
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.