diff options
| author | Shulhan <ms@kilabit.info> | 2021-10-27 22:01:43 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-10-27 22:01:43 +0700 |
| commit | 0bfe10781a53474fba2ab2b3f933df6b7e0a4e70 (patch) | |
| tree | f929439ebaa4c1b58bac05925f21e693a20ab8e6 /internal/cmd | |
| parent | 36d729c71dd03303a2eef4cfefa64ac1a78a0ec1 (diff) | |
| download | ciigo-0bfe10781a53474fba2ab2b3f933df6b7e0a4e70.tar.xz | |
all: update to latest share module
The latest share module simplify the memfs.GoEmbed call by using
struct memfs.EmbedOptions instead of passing it as parameters.
The changes on share module affect on how EmbedOptions in this module,
where memfs.EmbedOptions is used to replace field PackageName, VarName,
and GoFileName.
Diffstat (limited to 'internal/cmd')
| -rw-r--r-- | internal/cmd/goembed/main.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/cmd/goembed/main.go b/internal/cmd/goembed/main.go index 44ba0fa..368c4ce 100644 --- a/internal/cmd/goembed/main.go +++ b/internal/cmd/goembed/main.go @@ -10,6 +10,7 @@ import ( "log" "git.sr.ht/~shulhan/ciigo" + "github.com/shuLhan/share/lib/memfs" ) func main() { @@ -18,9 +19,11 @@ func main() { Root: "_example", HtmlTemplate: "_example/html.tmpl", }, - PackageName: "main", - VarName: "ciigoFS", - GoFileName: "cmd/ciigo-example/static.go", + EmbedOptions: memfs.EmbedOptions{ + PackageName: "main", + VarName: "ciigoFS", + GoFileName: "cmd/ciigo-example/static.go", + }, } err := ciigo.GoEmbed(&opts) if err != nil { |
