jsontoml: port to v2 (#726)

Fixes #719
This commit is contained in:
Thomas Pelletier
2021-12-31 14:40:20 -05:00
committed by GitHub
parent 82f8dad811
commit d8ddc00c61
7 changed files with 254 additions and 175 deletions
+8 -1
View File
@@ -209,7 +209,7 @@ In case of trouble: [Go Modules FAQ][mod-faq].
## Tools
Go-toml provides one handy command line tool:
Go-toml provides two handy command line tools:
* `tomljson`: Reads a TOML file and outputs its JSON representation.
@@ -218,6 +218,13 @@ Go-toml provides one handy command line tool:
$ tomljson --help
```
* `jsontoml`: Reads a JSON file and outputs a TOML representation.
```
$ go install github.com/pelletier/go-toml/v2/cmd/jsontoml@latest
$ jsontoml --help
```
## Migrating from v1
This section describes the differences between v1 and v2, with some pointers on