From 9d9185934024b1c82ee4d1bc43a88cbe09465361 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 12 May 2024 15:41:46 +0700 Subject: [PATCH] Release ciigo v0.13.0 (2024-05-12) === New features * cmd/ciigo: add flag to set package and variable name for "embed" The flag "-package-name" can be used to changes the default package name inside the Go embed file. The flag "-var-name" can be used to changes the default memfs variable name inside the Go embed file. === Enhancements * all: fix HTML files always generated when HTMLTemplate is not set If the path to HTMLTemplate option is not set, GoEmbed should convert to HTML only if markup file is newer than HTML file or when HTML file not exist. * all: initialize memfs using New When memfs not initialized using New, the [memfs.MemFS.PathNodes] will be nil. This cause any Get on new file will return 404. --- CHANGELOG.adoc | 31 +++++++++++++++++++++++++++++++ ciigo.go | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e9e9515..4d3e04d 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -6,6 +6,37 @@ Shulhan :sectanchors: :sectlinks: + +[#v0_13_0] +== ciigo v0.13.0 (2024-05-12) + +[#v0_13_0__new_features] +=== New features + +cmd/ciigo: add flag to set package and variable name for "embed":: ++ +The flag "-package-name" can be used to changes the default package name +inside the Go embed file. +The flag "-var-name" can be used to changes the default memfs variable +name inside the Go embed file. + + +[#v0_13_0__enhancements] +=== Enhancements + +all: fix HTML files always generated when HTMLTemplate is not set:: ++ +If the path to HTMLTemplate option is not set, GoEmbed should convert +to HTML only if markup file is newer than HTML file or when HTML file +not exist. + +all: initialize memfs using New:: ++ +When memfs not initialized using New, the [memfs.MemFS.PathNodes] will +be nil. +This cause any Get on new file will return 404. + + [#v0_12_0] == ciigo v0.12.0 (2024-04-04) diff --git a/ciigo.go b/ciigo.go index 73239b2..46664d6 100644 --- a/ciigo.go +++ b/ciigo.go @@ -27,7 +27,7 @@ const ( ) // Version define the latest tagged release of this module. -var Version = `0.12.0` +var Version = `0.13.0` // defExcludes define default files to be excludes on GoEmbed. var defExcludes = []string{ -- 2.45.2