Documentation
¶
Overview ¶
* @Author: NyanCatda * @Date: 2022-03-23 20:18:31 * @LastEditTime: 2022-03-27 21:33:20 * @LastEditors: NyanCatda * @Description: 配置文件操作 * @FilePath: \Momizi\Internal\Plugin\Tools\JsonConfig\Config.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func New ¶
*
- @description: 创建配置文件类
- @param {string} Path 配置文件路径
- @param {string} Default 默认配置
- @return {*}
func (Config) Get ¶
*
- @description: 读取配置项
- @param {string} Name 配置项名称
- @return {any} 配置项值
- @return {error} 错误信息
Click to show internal directories.
Click to hide internal directories.