yaml2go-cli
a command tool for yaml2go
let it can use go install
command
Install
go install github.com/Icemap/yaml2go-cli@latest
Show Help
./yaml2go-cli -h
yaml2go-cli is a cli-tool for yaml to go struct
Usage:
yaml2go-cli [flags]
Flags:
-h, --help help for yaml2go-cli
-i, --input string input yaml file path
-o, --output string output go file path
-p, --package string package name (default "main")
-s, --struct string struct name (default "Default")
Example
./yaml2go-cli -i test/test.yaml -o test/test.bean.file