Documentation ¶
Index ¶
- func Get(section, key string) *ini.Key
- func GetUrlByCorpid(corpid string, productid string, key string) string
- func NewVipConfig(filename string)
- type Config
- type VipConfig
- func (vcfg *VipConfig) GetBoolWithDefault(key string, defaul bool) bool
- func (vcfg *VipConfig) GetDurationWithDefault(key string, defaul time.Duration) time.Duration
- func (vcfg *VipConfig) GetIntWithDefault(key string, defaul int) int
- func (vcfg *VipConfig) GetStringSliceWithDefault(key string, defaul []string) []string
- func (vcfg *VipConfig) GetStringWithDefault(key, defaul string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVipConfig ¶
func NewVipConfig(filename string)
Types ¶
type VipConfig ¶
func (*VipConfig) GetBoolWithDefault ¶
func (*VipConfig) GetDurationWithDefault ¶
func (*VipConfig) GetIntWithDefault ¶
func (*VipConfig) GetStringSliceWithDefault ¶
func (*VipConfig) GetStringWithDefault ¶
Click to show internal directories.
Click to hide internal directories.