Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 513 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 513 Bytes

econv

Encoding convert

Install

go install github.com/fsgo/econv@latest

Usage

# econv -help
Usage of econv:
  -i string
    	Input file path
  -f string
    	Encoding from.
    	allow: json, toml, yml, msgpack
  -t string
    	Encoding to.
    	allow: json, toml, yml, msgpack
  -timeout string
    	Timeout for HTTP Requests (default "10s")
econv -i passport.toml -t json                 # toml -> json
cat passport.toml | econv -f toml -t json      # toml -> json