EASYGEN(1)
β¨ EASYGEN(1) β¨
okay bestie, gather round π this is easygen, a general commands manual page, and it's literally the "Easy to use universal code/text generator". gen z certified, unix approved, let's GO π
πΈ NAME πΈ
easygen β Easy to use universal code/text generator. that's it, that's the whole name, and it ate π
π SYNOPSIS π
easygen [flags] template_name [data_filename [data_filename...]]
data_filename(s)
the name for the .yaml or .json data. fr fr, here's the tea:
- If omitted, derive from the
template_name. no stress, she'll figure it out πββοΈ - Can have the extension or without it. If without extension, will try
.yamlfirst then.jsonβ yaml girlies first, sorry json stans π - Can include the path as well. paths are welcome here π«Ά
template_name
the name for the template file. iconic behavior only:
- Can have the extension or without it. lowkey flexible like that β¨
- Can include the path as well. slay π
- Can be a comma-separated list giving many template files, in which case at least one
data_filenamemust be given. like, yes, you can have multiple templates, but not with zero data β that's the rule bestie, no cap π¨
π¦ DESCRIPTION π¦
Command easygen is an easy to use universal code/text generator. periodt.
It can be used as a text or html generator for arbitrary purposes with arbitrary data and templates. it's giving versatile, it's giving main character energy π
It is a good GSL replacement, because it:
- is more easy to define driving data, in form of YML instead of XML (yaml supremacy, we said what we said π)
- has more powerful template engine that based on Go template. You can even write your own function in Go to customize your template. not me writing custom Go functions at 3am ππ₯
You can even use easygen as a generic Go template testing tool using the -ts commandline option, and much more. yes, MORE. iykyk π
π 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.
look at her go π₯Ήβ¨ first one's raw, second one's got the quotes, third one's out here without the trailing comma β different vibes, same data, obsessed π«Ά
π EXAMPLES π
easygen comes with comprehensive online documents. For further details, please go to:
https://github.com/go-easygen/easygenhttps://suntong.github.io/blogs/2016/01/01/easygen--easy-to-use-universal-code/text-generatorhttps://github.com/go-easygen/easygen/blob/master/using_easygen.mdhttps://github.com/go-easygen/easygen/wiki/Getting-Startedhttps://godoc.org/github.com/go-easygen/easygen#pkg-examples
read the docs bestie, they're thorough, they're comprehensive, they're the moment ππ
okay that's the whole page!! go forth and generate code and text with ease, you got this ππ
and that's a wrap fr fr π this was the General Commands Manual for easygen, dated January 2026, signed off with EASYGEN(1) β mwah, bye bestie π¦β¨π
π¦ where this page comes from
- ubuntu resolute: easygen 5.3.0-1build1 Β· MIT
- ubuntu stonking: easygen 5.3.0-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms