Skip to content

Icemap/yaml2go-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml2go-cli

build_badge

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

About

A command line tool to parse yaml file to golang struct code file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages