From 19528b4ff8ebaf79892710a429e9fe74a415bab4 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 7 Apr 2024 10:14:08 +0530 Subject: [PATCH] Minor edit to toml doc in README. --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 24df8a90..856e358e 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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"