Skip to content

paulyung541/code-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-gen

a code generator CLI tool

how to install

go get -u github.com/paulyung541/code-gen

create demo project

golang

default is golang

$ code-gen gen -d -n {your_project_name}

then the {your_project_name} project will created in your current directory like follow

./your_project_name
    main.go
    Makefile

clang

use --demo-type flag

$ code-gen gen -d -n {your_project_name} --demo-type clang

./your_project_name
    main.c
    Makefile

json to golang struct

let your json file in current directory first, and run this command

$ code-gen json

then the go file will be created

License

license

About

a code generator CLI tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published