easygen icon indicating copy to clipboard operation
easygen copied to clipboard

Easy to use universal code/text generator

Results 9 easygen issues
Sort by recently updated
recently updated
newest added

**Q:** Given: ``` {{define A}} D E F {{end}} ``` Or multi-line variables just like that, let's say I have the template setup like below: ``` A B C {{template...

wiki

This is by far the most complicated/versatile Go cli program wireframing (via `go-flags`) tool that I ever built. ### Test it To try it out, ```sh cd $GOPATH/src/github.com/go-easygen/easygen/test easygen commandlineGoFlags.header,commandlineGoFlags.ityped.tmpl,commandlineGoFlags...

wiki

### Using Nested Templates To include other Go templates from within templates, there exist a template function to be used inside template tags, which takes a “template name” and optionally...

wiki

### easygen builtin functions https://github.com/go-easygen/easygen/blob/60daafd97874fb39f8a7f8131b663efbef860b69/template.go#L29-L103 https://github.com/go-easygen/easygen/blob/23ee6943d7f8396676dcf5a17a4f24a3177fdea6/t_strings_test.go#L35-L219 ### [egVar](https://github.com/go-easygen/easygen/blob/master/egVar) builtin functions #### Notes: https://github.com/go-easygen/easygen/blob/5fd01cec1c3c91071bab6a124da100b7151510fd/egVar/EgVar.go#L32-L40 #### Functions https://github.com/go-easygen/easygen/blob/5fd01cec1c3c91071bab6a124da100b7151510fd/egVar/EgVar.go#L90-L118 #### Examples https://github.com/go-easygen/easygen/blob/5fd01cec1c3c91071bab6a124da100b7151510fd/egVar/EgVar_test.go#L16-L80 ### [egFilePath](https://github.com/go-easygen/easygen/blob/master/egFilePath) builtin functions https://github.com/go-easygen/easygen/blob/eb5b6aa387fb8e39dfaa43d584488a29af617eed/egFilePath/EgFilePath.go#L35-L53 #### Examples https://github.com/go-easygen/easygen/blob/eb5b6aa387fb8e39dfaa43d584488a29af617eed/egFilePath/example_test.go#L17-L34 ### [egCal](https://github.com/go-easygen/easygen/blob/master/egCal) builtin...

wiki

![image](https://user-images.githubusercontent.com/422244/147802760-8479d665-ffe1-44aa-92be-83243b55e0bf.png) ### Filtering Take a look at the vast amount of data a github API may return, e.g.: https://api.github.com/search/repositories?q=go. If there is only few key data that we want, then...

blog

Here is `easygen` using the same YAML file of: https://github.com/go-easygen/easygen/blob/cdf80e923cb3ba9dca32b689e2e99de66085d255/cmd/easygen/easygen.yaml#L1-L76 which is used to generates the cli code, and use it to auto-generate Go data structure instead: https://github.com/go-easygen/easygen/blob/cdf80e923cb3ba9dca32b689e2e99de66085d255/config.go#L1-L19 from this...

wiki

The `easygen` provides a rich set of options to auto-generating Go code for command line parameter handling. Here are them in real code. ### For built-in flag package #### Sample...

wiki

(Repost from https://github.com/go-easygen/easygen/wiki/V1-&-V2) ## Version 1 ### Info https://gopkg.in/easygen.v1 ### Sample code, V1 ```go func exampleV1(templateFile string, config templateData) error { t, err := easygen.ParseFiles(false, templateFile) check(err) env := make(map[string]string)...

wiki

After using cloudsmith's setup.deb.sh, I found that there are still several extra steps need to be fixed before it can actually be used: Here is the log: ``` $ curl...

wiki