.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "EASYGEN" "1" "July 2021" "" .SH "NAME" \fBeasygen\fR \- Easy to use universal code/text generator .SH "SYNOPSIS" easygen [flags] template_name [data_filename [data_filename\|\.\|\.\|\.]] .P data_filename(s): The name for the \.yaml or \.json data\. .IP "\[ci]" 4 If omitted derive from the template_name\. .IP "\[ci]" 4 Can have the extension or without it\. If withot extension, will try \.yaml first then \.json .IP "\[ci]" 4 Can include the path as well\. .IP "" 0 .P template_name: The name for the template file\. .IP "\[ci]" 4 Can have the extension or without it\. .IP "\[ci]" 4 Can include the path as well\. .IP "\[ci]" 4 Can be a comma\-separated list giving many template files, in which case at least one data_filename must be given\. .IP "" 0 .SH "DESCRIPTION" Command \fBeasygen\fR is an easy to use universal code/text generator\. .P It can be used as a text or html generator for \fIarbitrary\fR purposes with \fIarbitrary\fR data and templates\. It is a good GSL replacement, as it .IP "\[ci]" 4 is more easy to define driving data, in form of YML instead of XML .IP "\[ci]" 4 has more powerful template engine that based on Go template\. You can even write your own function in Go to customize your template\. .IP "" 0 .P You can even use easygen as a generic Go template testing tool using the \fB\-ts\fR commandline option, and much more\. .SH "Usage" It's very easy to use \-\- just type \fBeasygen\fR and following the inline help\. Or try the following example to get started: .IP "" 4 .nf 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\. .fi .IP "" 0 .SH "EXAMPLES" \fBeasygen\fR comes with comprehensive online documents\. For further details, please go to: .P https://github\.com/go\-easygen/easygen .P https://suntong\.github\.io/blogs/2016/01/01/easygen\-\-easy\-to\-use\-universal\-code/text\-generator .P https://github\.com/go\-easygen/easygen/blob/master/using_easygen\.md .P https://github\.com/go\-easygen/easygen/wiki/Getting\-Started .P https://godoc\.org/github\.com/go\-easygen/easygen#pkg\-examples