Documentation
¶
Index ¶
- Constants
- type ConfSet
- func (c *ConfSet) Bool(sectionName, name string, value bool) *bool
- func (c *ConfSet) BoolVar(p *bool, sectionName, name string, value bool)
- func (c *ConfSet) Duration(sectionName, name string, value time.Duration) *time.Duration
- func (c *ConfSet) DurationVar(p *time.Duration, sectionName, name string, value time.Duration)
- func (c *ConfSet) Float64(sectionName, name string, value float64) *float64
- func (c *ConfSet) Float64Var(p *float64, sectionName, name string, value float64)
- func (c *ConfSet) Int(sectionName, name string, value int) *int
- func (c *ConfSet) Int64(sectionName, name string, value int64) *int64
- func (c *ConfSet) Int64Var(p *int64, sectionName, name string, value int64)
- func (c *ConfSet) IntVar(p *int, sectionName, name string, value int)
- func (c *ConfSet) Parse() error
- func (c *ConfSet) String(sectionName, name string, value string) *string
- func (c *ConfSet) StringVar(p *string, sectionName, name string, value string)
- func (c *ConfSet) Uint(sectionName, name string, value uint) *uint
- func (c *ConfSet) Uint64(sectionName, name string, value uint64) *uint64
- func (c *ConfSet) Uint64Var(p *uint64, sectionName, name string, value uint64)
- func (c *ConfSet) UintVar(p *uint, sectionName, name string, value uint)
- func (c *ConfSet) Var(val Value, sectionName, name string)
- type Getter
- type Item
- type Section
- type Value
Constants ¶
View Source
const (
GLOBAL_SECTION = "_GLOBAL_SECTION_"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfSet ¶
type ConfSet struct {
// contains filtered or unexported fields
}
func (*ConfSet) DurationVar ¶
func (*ConfSet) Float64Var ¶
type Getter ¶
type Getter interface {
Value
Get() interface{}
}
Getter is an interface that allows the contents of a Value to be retrieved. It wraps the Value interface, rather than being part of it, because it appeared after Go 1 and its compatibility rules. All Value types provided by this package satisfy the Getter interface.
Click to show internal directories.
Click to hide internal directories.