package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Nov 13, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Get[T any](module, key string, defValue T) T
Get
@Description: 获取内容
@param module 模块名称
@param key 节点路径,例如 xx.xx.xx
@param defValue 默认值
@return T
Load
@Description: 加载内容到结构体
@param module 模块名称
@param configStruct 结构体指针
Save
@Description: 保持结构体的值
注意,当前版本该方法只会替换配置文件中已经存在的节点的值,
新增的属性不会自动创建
@param module 模块名称
@param configStruct 结构体指针
Source Files
¶
Click to show internal directories.
Click to hide internal directories.