From 0bfe10781a53474fba2ab2b3f933df6b7e0a4e70 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 27 Oct 2021 22:01:43 +0700 Subject: 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. --- cmd/ciigo/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/ciigo/main.go b/cmd/ciigo/main.go index b33b062..4701c68 100644 --- a/cmd/ciigo/main.go +++ b/cmd/ciigo/main.go @@ -40,6 +40,7 @@ import ( "git.sr.ht/~shulhan/ciigo" "github.com/shuLhan/share/lib/debug" + "github.com/shuLhan/share/lib/memfs" ) func main() { @@ -91,7 +92,9 @@ func main() { HtmlTemplate: *htmlTemplate, Exclude: *exclude, }, - GoFileName: *outputFile, + EmbedOptions: memfs.EmbedOptions{ + GoFileName: *outputFile, + }, } err = ciigo.GoEmbed(&genOpts) -- cgit v1.3-6-g1900