Skip to content

Commit 8d1e696

Browse files
authored
Fix usage of struct tags for config (#203)
* Fix usage of struct tags for config * Fix config field in test * Use less indirection
1 parent 5922870 commit 8d1e696

File tree

5 files changed

+71
-229
lines changed

5 files changed

+71
-229
lines changed

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ require (
1717
github.com/google/uuid v1.1.1 // indirect
1818
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
1919
github.com/hashicorp/go-uuid v1.0.2 // indirect
20+
github.com/hashicorp/golang-lru v0.5.1 // indirect
2021
github.com/joho/godotenv v1.3.0
2122
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
2223
github.com/kelseyhightower/envconfig v1.4.0
@@ -25,6 +26,7 @@ require (
2526
github.com/kr/text v0.2.0 // indirect
2627
github.com/launchdarkly/eventsource v1.6.1 // indirect
2728
github.com/launchdarkly/go-test-helpers v1.2.0 // indirect
29+
github.com/mitchellh/mapstructure v1.1.2
2830
github.com/nats-io/nats-streaming-server v0.15.1 // indirect
2931
github.com/nats-io/nats.go v1.8.1
3032
github.com/nats-io/stan.go v0.5.0
@@ -37,16 +39,14 @@ require (
3739
github.com/sebest/xff v0.0.0-20160910043805-6c115e0ffa35
3840
github.com/shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d
3941
github.com/sirupsen/logrus v1.6.0
40-
github.com/spf13/afero v1.2.2 // indirect
4142
github.com/spf13/cobra v0.0.4-0.20190321000552-67fc4837d267
42-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
4343
github.com/spf13/pflag v1.0.3
44-
github.com/spf13/viper v1.7.1
4544
github.com/stretchr/testify v1.6.0
4645
github.com/tidwall/pretty v1.0.1 // indirect
4746
github.com/xdg/stringprep v1.0.0 // indirect
4847
go.mongodb.org/mongo-driver v1.4.1
4948
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc
49+
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
5050
gopkg.in/DataDog/dd-trace-go.v1 v1.26.0
5151
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
5252
gopkg.in/ghodss/yaml.v1 v1.0.0 // indirect

0 commit comments

Comments
 (0)