()
| 12 | ) |
| 13 | |
| 14 | func Example_minimum() { |
| 15 | conf, _ := config.NewConfig( |
| 16 | config.WithProviderLayer( |
| 17 | rawbytes.Provider([]byte(`{"foo": "bar"}`)), json.Parser(), |
| 18 | ), |
| 19 | ) |
| 20 | fmt.Println(conf.String("foo")) |
| 21 | // Output: |
| 22 | // bar |
| 23 | } |
| 24 | |
| 25 | func Example_configurationStack() { |
| 26 | fs := flag.NewFlagSet("config", flag.ContinueOnError) |
nothing calls this directly
no test coverage detected