Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: example #51

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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