| tag name | v0.4.0 (837f4ff33ea59badc2aa9e4c580887c66a19ee5f) |
| tag date | 2021-01-21 00:53:33 +0700 |
| tagged by | Shulhan <ms@kilabit.info> |
| tagged object | commit 8d78e32973... |
| download | ciigo-0.4.0.tar.xz |
|---|
ciigo v0.4.0 (2021-01-21)
Refactoring due to change on memfs package.
This changes affect the exported functions Generate() and Serve().
Previously, the Generate() function accept three options: dir, out,
and htmlTemplate; this release changes the parameter into single struct
Options with two additional options: GenPackageName and GenVarName.
The GenPackageName allow to set the package name in Go generate source
code, default to "main" if not set.
The GenVarName set the instance of memfs.MemFS where the embedded
files will be stored.
On the Serve() function, we add parameter to pass the instance of
memfs.MemFS (the one that passed on GenVarName).
