代码拉取完成,页面将自动刷新
package Base
import "time"
// 配置操作对象
type IConfiguration interface {
// values
Strings(key string) []string
Ints(key string) []int
Float64s(key string) []float64
Durations(key string) []time.Duration
//
Get(string) (string, error)
GetDefault(string, string) string
//
GetInt(string) (int, error)
GetIntDefault(string, int) int
//
GetDuration(string) (time.Duration, error)
GetDurationDefault(string, time.Duration) time.Duration
//
GetBool(string) (bool, error)
GetBoolDefault(string, bool) bool
//
GetFloat64(string) (float64, error)
GetFloat64Default(string, float64) float64
Set(string, string)
SetAll(map[string]string)
Keys() []string
//t必须为指针型
Unmarshal(interface{}) error
// 获取特定前缀配置,返回新配置对象
Prefix(string,...bool) ConfigureFace
}
// 创建
type CreateAble interface {
Create() interface{}
}
// 配置管理(门脸)对象
type ConfigureFace interface {
IFaced // 门脸信息,门脸注册相关
IConfiguration // 实例操作集合
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。