aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-06 20:51:46 +0700
committerShulhan <ms@kilabit.info>2023-11-07 20:18:38 +0700
commit3bece2842069f98d048d2cdfec0b2f8250d38412 (patch)
tree8fd849965f8ca073a2f2d90e091da0446a371dbe
parent46bd8b68dc8c2662618af11e3cf6a69b3194d29d (diff)
downloadciigo-3bece2842069f98d048d2cdfec0b2f8250d38412.tar.xz
go.mod: update share module to v0.50.1
This release bring many enhancements to "lib/memfs", a library for caching file system in memory. === Enhancements * lib/memfs: return nil in AddChild if file not exist * lib/memfs: quote the path in the returned error * lib/memfs: add method Child to Node * lib/memfs: call the Init method in the embedded file * lib/memfs: include empty directory * lib/memfs: re-scan directory content on Node’s Update
-rw-r--r--cmd/ciigo-example/static.go9
-rw-r--r--go.mod10
-rw-r--r--go.sum16
3 files changed, 20 insertions, 15 deletions
diff --git a/cmd/ciigo-example/static.go b/cmd/ciigo-example/static.go
index f2561db..90695e0 100644
--- a/cmd/ciigo-example/static.go
+++ b/cmd/ciigo-example/static.go
@@ -194,7 +194,7 @@ func init() {
ciigoFS = &memfs.MemFS{
PathNodes: memfs.NewPathNode(),
Opts: &memfs.Options{
- Root: "_example",
+ Root: "_example",
MaxFileSize: 5242880,
Includes: []string{
},
@@ -204,7 +204,7 @@ func init() {
`^\..*`,
},
Embed: memfs.EmbedOptions{
- CommentHeader: `// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
+ CommentHeader: `// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
`,
PackageName: "main",
@@ -238,4 +238,9 @@ func init() {
_ciigoFS_getNode(ciigoFS, "_internal/.template", generate__internal__template))
ciigoFS.Root = ciigoFS.PathNodes.Get("/")
+
+ var err = ciigoFS.Init()
+ if err != nil {
+ panic("ciigoFS: " + err.Error())
+ }
}
diff --git a/go.mod b/go.mod
index 82654ea..279bf21 100644
--- a/go.mod
+++ b/go.mod
@@ -3,18 +3,18 @@
module git.sr.ht/~shulhan/ciigo
-go 1.19
+go 1.20
require (
- git.sr.ht/~shulhan/asciidoctor-go v0.5.0
- github.com/shuLhan/share v0.50.0
- github.com/yuin/goldmark v1.5.6
+ git.sr.ht/~shulhan/asciidoctor-go v0.5.1-0.20231105052733-3d54e38bac45
+ github.com/shuLhan/share v0.50.1
+ github.com/yuin/goldmark v1.6.0
github.com/yuin/goldmark-meta v1.1.0
)
require (
golang.org/x/net v0.17.0 // indirect
- golang.org/x/sys v0.13.0 // indirect
+ golang.org/x/sys v0.14.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
diff --git a/go.sum b/go.sum
index 1b67a86..0862105 100644
--- a/go.sum
+++ b/go.sum
@@ -1,15 +1,15 @@
-git.sr.ht/~shulhan/asciidoctor-go v0.5.0 h1:TfcAjv+7EwBZ83ef8OhX9vfQ4vRFcaJh0P1XXgbsJv0=
-git.sr.ht/~shulhan/asciidoctor-go v0.5.0/go.mod h1:RHAfgO1CU1It8Gsz6eqDBi8HhT4wxhCS1dKO8U9vIgM=
-github.com/shuLhan/share v0.50.0 h1:L1TR7jsSOv5cDMkH4CapIzDp/Yisq5Xe16GMeQRCSMs=
-github.com/shuLhan/share v0.50.0/go.mod h1:YEwLUwwBpDqPn5yxfdb0B8eFP04SKQxv5gMQwB4A+c4=
-github.com/yuin/goldmark v1.5.6 h1:COmQAWTCcGetChm3Ig7G/t8AFAN00t+o8Mt4cf7JpwA=
-github.com/yuin/goldmark v1.5.6/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+git.sr.ht/~shulhan/asciidoctor-go v0.5.1-0.20231105052733-3d54e38bac45 h1:FGltprabRao/KSTbvM3OTbC6e0oXI/EJ8O60QAqrEu4=
+git.sr.ht/~shulhan/asciidoctor-go v0.5.1-0.20231105052733-3d54e38bac45/go.mod h1:q3YhUBXTOpM9HDfaTop6MVx2dc0p9idWJAfdpjbWJp4=
+github.com/shuLhan/share v0.50.1 h1:R4yDLdITKttJJhWJDeYvW1fA6FIEr2IMqvEn395JiaM=
+github.com/shuLhan/share v0.50.1/go.mod h1:dUE7xqEzT8HZRy8vvfFzrFJ+6a6chXwaPmC4hYB68QU=
+github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
+github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc=
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
-golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
-golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
+golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=