Skip to content

Commit 31b7f25

Browse files
committed
Merge pull request #5 from fancycode/goconf_accessors
Expose more goconf methods through the Config interface.
2 parents c3429c4 + 32f30ad commit 31b7f25

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ go:
1010
- 1.3
1111
- 1.4
1212
- 1.5
13-
- 1.6
14-
- tip
1513

1614
install:
1715
- go get github.com/dlintw/goconf

config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import (
1313
// GetXXXDefault methods return dflt if the named option in section has no
1414
// value. Use HasOption to determine the status of an option thus defaulted.
1515
type Config interface {
16+
HasSection(section string) bool
17+
GetSections() []string
18+
GetOptions(section string) ([]string, error)
1619
HasOption(section, option string) bool
1720
GetBool(section, option string) (bool, error)
1821
GetBoolDefault(section, option string, dflt bool) bool

0 commit comments

Comments
 (0)