Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrParseOptions 标志配置不合法 ErrParseOptions = E("parse options error") // ErrReadFile 表示读取文件失败 ErrReadFile = E("read file error") // ErrFileNotExist 表示配置文件不存在 ErrFileNotExist = E("file not exist") // ErrTarget 表示解析配置的目标错误 ErrTarget = E("illegal target") // ErrWriteToFile 写文件错误 ErrWriteToFile = E("write to file error") // ErrUnmarshal 反序列化错误 ErrUnmarshal = E("unmarshal error") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option 表示配置选项,只能内部生成
func OptCreateIfNotExist ¶
OptCreateIfNotExist 当配置文件不存在时,是否需要生成默认配置
Click to show internal directories.
Click to hide internal directories.