easygen1
Easy to use universal code/text generator
Usage
easygen [flags]
template_name
[data_filename
[data_filename ...]]
Overview
Command easygen is an easy to use universal code/text generator.
It can be used as a text or html generator for arbitrary purposes with arbitrary data and templates. It is a good GSL replacement, as it
- •
-
is more easy to define driving data, in form of YML instead of XML
- •
-
has more powerful template engine that based on Go template. You can even write your own function in Go to customize your template.
You can even use easygen as a generic Go template testing tool using the -ts commandline option, and much more.
Usage
It's very easy to use -- just type easygen and following the inline help. Or try the following example to get started:
-
export PATH=$PATH:$GOPATH/bin $ easygen $GOPATH/src/github.com/go-easygen/easygen/test/list0 The colors are: red, blue, white, . cd $GOPATH/src/github.com/go-easygen/easygen $ easygen test/list1 The quoted colors are: "red", "blue", "white", . $ easygen -tf test/listfunc1 test/list0 red, blue, white.
Examples
easygen comes with comprehensive online documents. For further details, please go to:
https://github.com/go-easygen/easygen
https://suntong.github.io/blogs/2016/01/01/easygen--easy-to-use-universal-code/text-generator
https://github.com/go-easygen/easygen/blob/master/using_easygen.md
https://github.com/go-easygen/easygen/wiki/Getting-Started
https://godoc.org/github.com/go-easygen/easygen#pkg-examples
Releases
3 releases since Debian 11 (Bullseye); the text changed 2 times.