Documentation
¶
Index ¶
Constants ¶
View Source
const ( Db = "db" DbHost = "host" DbPort = "host" DbUser = "user" DbPass = "pass" DbName = "name" )
Variables ¶
View Source
var (
ErrNoValue = errors.New("config error, no value") //没有对应的值
)
Functions ¶
Types ¶
type Ini ¶
type Ini struct {
// contains filtered or unexported fields
}
Ini 配置对象
func (*Ini) GetWithDef ¶
获取内容,如果不存在则返回默认值
Click to show internal directories.
Click to hide internal directories.