Skip to content

Commit

Permalink
Merge pull request #51 from antonmashko/fix-example
Browse files Browse the repository at this point in the history
fix: example
  • Loading branch information
antonmashko authored Oct 17, 2023
2 parents f782e56 + bcf2765 commit 5d91ad0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions example/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/antonmashko/envconf/example

go 1.21.0

require github.com/antonmashko/envconf v1.4.6
2 changes: 2 additions & 0 deletions example/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/antonmashko/envconf v1.4.6 h1:u2h1Zmrgrf501Zc7mXGENR5YA0JwM7JE63AVYabgmXM=
github.com/antonmashko/envconf v1.4.6/go.mod h1:8tLk5O33IWWcVlFCjN8xMCZ9u8d58cWwVejEKYIXxi0=
1 change: 0 additions & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type Example struct {
func main() {
var cfg Example
err := envconf.Parse(&cfg,
option.WithExternal(&json.Json{}),
option.WithLog(log.Default()),
option.WithFlagConfigFile("config", "./conf.json", "", func(b []byte) (external.External, error) {
return json.Json(b), nil
Expand Down

0 comments on commit 5d91ad0

Please sign in to comment.