From 44e73eaf1f7f047712d319dd272fafe0a151d09a Mon Sep 17 00:00:00 2001 From: J7mbo Date: Mon, 4 Mar 2019 20:43:27 +0100 Subject: [PATCH] Minor update to travis CI configuration and README --- .travis.yml | 2 +- GoEnvConfig.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9a0ded..b31d3dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) \ No newline at end of file diff --git a/GoEnvConfig.go b/GoEnvConfig.go index 4d7863b..bce01fb 100644 --- a/GoEnvConfig.go +++ b/GoEnvConfig.go @@ -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 } @@ -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")