We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3429c4 + 32f30ad commit 31b7f25Copy full SHA for 31b7f25
.travis.yml
@@ -10,8 +10,6 @@ go:
10
- 1.3
11
- 1.4
12
- 1.5
13
- - 1.6
14
- - tip
15
16
install:
17
- go get github.com/dlintw/goconf
config.go
@@ -13,6 +13,9 @@ import (
// GetXXXDefault methods return dflt if the named option in section has no
// value. Use HasOption to determine the status of an option thus defaulted.
type Config interface {
+ HasSection(section string) bool
+ GetSections() []string
18
+ GetOptions(section string) ([]string, error)
19
HasOption(section, option string) bool
20
GetBool(section, option string) (bool, error)
21
GetBoolDefault(section, option string, dflt bool) bool
0 commit comments