Documentation
¶
Index ¶
- func GetConfStrByLine(line string) (itemk, itemv string)
- type Conf
- func (cf *Conf) AddComment(title string, comment ...string)
- func (cf *Conf) BoolVar(pval *bool, name string, defval bool, title string, usage ...string)
- func (cf Conf) DefaultString() string
- func (cf *Conf) Float64Var(pval *float64, name string, defval float64, title string, usage ...string)
- func (cf *Conf) IntListVar(pval *[]int, name string, defval []int, title string, usage ...string)
- func (cf *Conf) IntVar(pval *int, name string, defval int, title string, usage ...string)
- func (cf *Conf) Parse() error
- func (cf Conf) String() string
- func (cf *Conf) StringListVar(pval *[]string, name string, defval []string, title string, usage ...string)
- func (cf *Conf) StringVar(pval *string, name string, defval, title string, usage ...string)
- func (cf *Conf) UpdateFile(fpath string) error
- type ConfItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfStrByLine ¶
Types ¶
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
func (*Conf) AddComment ¶
func (Conf) DefaultString ¶
func (*Conf) Float64Var ¶
func (*Conf) IntListVar ¶
func (*Conf) StringListVar ¶
func (*Conf) UpdateFile ¶
Click to show internal directories.
Click to hide internal directories.