Skip to content

Commit

Permalink
Minor edit to toml doc in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Apr 7, 2024
1 parent bcc4b9f commit 19528b4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ go get -u github.com/knadh/koanf/providers/file


# Install the necessary Parser(s).
# Available: toml, json, yaml, dotenv, hcl, hjson, nestedtext
# Available: toml, toml/v2, json, yaml, dotenv, hcl, hjson, nestedtext
# go get -u github.com/knadh/koanf/parsers/$parser

go get -u github.com/knadh/koanf/parsers/toml/v2

go get -u github.com/knadh/koanf/parsers/toml
```

[See the list](#api) of all bundled Providers and Parsers.
Expand Down Expand Up @@ -167,7 +166,11 @@ import (
"os"

"github.com/knadh/koanf/v2"
"github.com/knadh/koanf/parsers/toml/v2"
"github.com/knadh/koanf/parsers/toml"

// TOML version 2 is available at:
// "github.com/knadh/koanf/parsers/toml/v2"

"github.com/knadh/koanf/providers/file"
"github.com/knadh/koanf/providers/posflag"
flag "github.com/spf13/pflag"
Expand Down

0 comments on commit 19528b4

Please sign in to comment.