fig icon indicating copy to clipboard operation
fig copied to clipboard

A minimalist Go configuration library

Results 10 fig issues
Sort by recently updated
recently updated
newest added

The [duration parser](https://pkg.go.dev/time#ParseDuration) provided by the standard library fails when it's input doesn't include a time unit. As expected, fig also fails in such a case, but it doesn't when...

Hi, I would like it, if it would be possible to search for different file names (same as dirs). ex allow ./config.json ./config.yaml and ./config.toml Thanks for the nice work.

fig uses the very powerful mapstructure under the hood just like viper. But unlike [viper](https://github.com/spf13/viper) or [uconfig](https://github.com/omeid/uconfig) it does not expose some sort of hook/middleware mechanism so that user defined...

Currently, environment variables can't be used as a full replacement for a config file, only in addition to one. If no config file exists, I think it should just use...

Closes #32 This is just a minimal implementation to see if you're ok with the way I added this new feature or not. More test cases can be added.

Hello and thanks for your great package. I have a specific use case in which env var is using another names which is different with the name generated by the...

consider a config struct like ```go type Config struct { Foo *CustomFoo `fig:"foo_config_file"` } ``` where `CustomFoo`: ```go type CustomFoo struct { Bar string `json:"bar"` Baz string `json:"baz"` } func...

I have `struct`s similar to: ```golang type Foo struct { Bar string `fig:"bar"` } type Config struct { *Foo Baz string `fig:"baz"` } ``` And a config file like so:...

Most people managing container stacks in a git repo use secrets instead of env vars for passwords/keys/tokens as it allows it to be declared without being exposed. https://docs.docker.com/compose/how-tos/use-secrets/ Essentially instead...

This PR adds a new `FileReader` option that allows users to preprocess configuration files before they are parsed by fig's decoders. This enables use cases like environment variable substitution, template...