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 /embed_options.go | |
| 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 'embed_options.go')
| -rw-r--r-- | embed_options.go | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/embed_options.go b/embed_options.go index cc722a1..52dae1a 100644 --- a/embed_options.go +++ b/embed_options.go @@ -11,19 +11,7 @@ import "github.com/shuLhan/share/lib/memfs" // type EmbedOptions struct { ConvertOptions - - // PackageName the name of package in Go generated source code. - // Default to memfs.DefaultEmbedPackageName if its empty. - PackageName string - - // GenVarName the name of variable where all files in Root will be - // stored. - // Default to memfs.DefaultEmbedVarName if its empty. - VarName string - - // GenGoFileName the file name of Go source code will be written. - // Default to memfs.DefaultEmbedGoFileName if its empty. - GoFileName string + memfs.EmbedOptions } func (opts *EmbedOptions) init() (err error) { |
