Skip to content

Commit 44e73ea

Browse files
committed
Minor update to travis CI configuration and README
1 parent e7ec742 commit 44e73ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121

2222
script:
2323
- go build
24-
- go test -coverprofile=coverage.txt -covermode=atomic
24+
- go test ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/j7mbo/goenvconfig
2525

2626
after_success:
2727
- bash <(curl -s https://codecov.io/bash)

GoEnvConfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const (
1616

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

@@ -27,6 +26,7 @@ func NewGoEnvParser() GoEnvParser {
2726
return &goEnvParser{}
2827
}
2928

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

0 commit comments

Comments
 (0)