You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`copre` is a small library for loading **co**nfiguration from multiple sources with a user-defined **pre**cedence and merging them. The sources include [`pflags`](https://github.com/spf13/pflag), environment-variables and files (bring your own file-format).
12
10
11
+
While `copre` can be used standalone with only `pflags`. It was created to accomodate existing projects also utilizing [`cobra`](https://github.com/spf13/cobra).
12
+
13
13
## Overview
14
14
15
15
With `copre` it is straightforward to express how your configuration should be loaded.
@@ -19,8 +19,8 @@ With `copre` it is straightforward to express how your configuration should be l
19
19
* One-way to populate a configuration `struct`
20
20
* Struct-tags to specify options for environment variables and flags
21
21
* Minimal defaults, opt-in to features using options instead (intentionally explicit)
22
-
* Flexible `Loader`-composition as many passes as required (see example Y)
23
-
* Easy to extend (see example X)
22
+
* Flexible `Loader`-composition as many passes as required (see example [Using options](https://github.com/trevex/copre#using-options))
23
+
* Easy to extend (see example [Custom `Loader`](https://github.com/trevex/copre#custom-loader))
0 commit comments