Skip to content

Commit

Permalink
Minor update to travis CI configuration and README
Browse files Browse the repository at this point in the history
  • Loading branch information
J7mbo committed Mar 4, 2019
1 parent e7ec742 commit 44e73ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:

script:
- go build
- go test -coverprofile=coverage.txt -covermode=atomic
- go test ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/j7mbo/goenvconfig

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion GoEnvConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const (

/* GoEnvParser represents an object capable of parsing environment variables into a struct, given specific tags. */
type GoEnvParser interface {
/* Parse accepts a struct pointer and populates private properties according to "env" and "default" tag keys. */
Parse(object interface{}) error
}

Expand All @@ -27,6 +26,7 @@ func NewGoEnvParser() GoEnvParser {
return &goEnvParser{}
}

/* Parse accepts a struct pointer and populates private properties according to "env" and "default" tag keys. */
func (*goEnvParser) Parse(object interface{}) error {
if reflect.TypeOf(object).Kind() != reflect.Ptr {
return errors.New("objects passed to env.Parse() must be of kind pointer")
Expand Down

0 comments on commit 44e73ea

Please sign in to comment.