File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 21
21
22
22
script :
23
23
- go build
24
- - go test -coverprofile=coverage.txt -covermode=atomic
24
+ - go test ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/j7mbo/goenvconfig
25
25
26
26
after_success :
27
27
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const (
16
16
17
17
/* GoEnvParser represents an object capable of parsing environment variables into a struct, given specific tags. */
18
18
type GoEnvParser interface {
19
- /* Parse accepts a struct pointer and populates private properties according to "env" and "default" tag keys. */
20
19
Parse (object interface {}) error
21
20
}
22
21
@@ -27,6 +26,7 @@ func NewGoEnvParser() GoEnvParser {
27
26
return & goEnvParser {}
28
27
}
29
28
29
+ /* Parse accepts a struct pointer and populates private properties according to "env" and "default" tag keys. */
30
30
func (* goEnvParser ) Parse (object interface {}) error {
31
31
if reflect .TypeOf (object ).Kind () != reflect .Ptr {
32
32
return errors .New ("objects passed to env.Parse() must be of kind pointer" )
You can’t perform that action at this time.
0 commit comments