8000 GitHub - eavesmy/yaml2go-cli: A command line tool to parse yaml file to golang struct code file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eavesmy/yaml2go-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml2go-cli

Forked from github.com/Icemap/yaml2go-cli

Change

  1. Yaml parser github.com/PrasadG193/yaml2go -> github.com/fengzxu/yaml2go.
  2. Default package name is the base of output path.

Install

go install github.com/eavesmy/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 example/conf.yaml -o example/conf.go

Thx Icemap and fengzxu

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0