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
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
**koanf** is a library for reading configuration from different sources in different formats in Go applications. It is a cleaner, lighter [alternative to spf13/viper](#alternative-to-viper) with better abstractions and extensibility and far fewer dependencies.
6
6
7
-
koanf v2 has modules (Providers) for reading configuration from a variety of sources such as files, command line flags, environment variables, Vault, and S3 and for parsing (Parsers) formats such as JSON, YAML, TOML, Hashicorp HCL. It is easy to plug in custom parsers and providers.
7
+
koanf v2 has modules (Providers) for reading configuration from a variety of sources such as files, command line flags, environment variables, Vault, and S3 and for parsing (Parsers) formats such as JSON, YAML, TOML, HUML, Hashicorp HCL. It is easy to plug in custom parsers and providers.
8
8
9
9
All external dependencies in providers and parsers are detached from the core and can be installed separately as necessary.
10
10
@@ -26,7 +26,7 @@ go get -u github.com/knadh/koanf/providers/file
# go get -u github.com/knadh/koanf/parsers/$parser
31
31
32
32
go get -u github.com/knadh/koanf/parsers/toml
@@ -680,8 +680,9 @@ Install with `go get -u github.com/knadh/koanf/parsers/$parser`
680
680
| toml/v2 | `toml.Parser()` | Parses TOML bytes into a nested map (using go-toml v2) |
681
681
| dotenv | `dotenv.Parser()` | Parses DotEnv bytes into a flat map |
682
682
| hcl | `hcl.Parser(flattenSlices bool)` | Parses Hashicorp HCL bytes into a nested map. `flattenSlices` is recommended to be set to true. [Read more](https://github.com/hashicorp/hcl/issues/162). |
683
+
| hjson | `hjson.Parser()` | Parses HJSON bytes into a nested map |
684
+
| huml | `huml.Parser()` | Parses HUML (Human-Oriented Markup Language) bytes into a nested map |
683
685
| nestedtext | `nestedtext.Parser()` | Parses NestedText bytes into a flat map |
684
-
| hjson | `hjson.Parser()` | Parses HJSON bytes into a nested map
0 commit comments