diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-16 03:04:33 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-16 03:04:33 +0700 |
| commit | 3f824c2f1c3b86cac390e1541037d50ae5f9cc0b (patch) | |
| tree | 965b4c60a428905706bc4dbf8c214ef38a9de82c | |
| parent | 2aedfd279a082fb3a6c05ae9f70b01005f499ef9 (diff) | |
| download | ciigo-3f824c2f1c3b86cac390e1541037d50ae5f9cc0b.tar.xz | |
go.mod: update pakakeh.go to v0.60.3-0.20260115103415-806359d5462f
This update have changes on [lib/http.FSHandler] that return second
parameter, status code.
| -rw-r--r-- | ciigo.go | 2 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | go.sum | 4 | ||||
| -rw-r--r-- | server.go | 10 |
4 files changed, 9 insertions, 9 deletions
@@ -28,7 +28,7 @@ const ( ) // Version define the latest tagged release of this module. -var Version = `0.15.3` +var Version = `0.15.4` // defExcludes define default files to be excludes on GoEmbed. var defExcludes = []string{ @@ -7,7 +7,7 @@ go 1.24.0 require ( git.sr.ht/~shulhan/asciidoctor-go v0.7.2 - git.sr.ht/~shulhan/pakakeh.go v0.60.2 + git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260115103415-806359d5462f github.com/yuin/goldmark v1.7.13 github.com/yuin/goldmark-meta v1.1.0 ) @@ -1,7 +1,7 @@ git.sr.ht/~shulhan/asciidoctor-go v0.7.2 h1:MeLOXoHeBE5Glq0M/DegO9lIv/MSH1mhre2EMNPXG3I= git.sr.ht/~shulhan/asciidoctor-go v0.7.2/go.mod h1:cY9Ae1vu3OniC7z29twH1/PMJa7ZSSUqbK9QQM4/bhc= -git.sr.ht/~shulhan/pakakeh.go v0.60.2 h1:ZSRE77lYm+mkhvg9pSrxCIO81ydbqt93qbsWuZJpjtI= -git.sr.ht/~shulhan/pakakeh.go v0.60.2/go.mod h1:1MkKXbLZRHTcnheeSEbRpGztkym4Yxzh90ep+jCxbDc= +git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260115103415-806359d5462f h1:2D3QbPVWg5g91wcuyfY9fuN35NWXvCJAjg7c6YbKSVE= +git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260115103415-806359d5462f/go.mod h1:1MkKXbLZRHTcnheeSEbRpGztkym4Yxzh90ep+jCxbDc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= @@ -176,7 +176,7 @@ func (ciigo *Ciigo) onSearch(epr *libhttp.EndpointRequest) (resBody []byte, err // files. func (ciigo *Ciigo) onGet( node *memfs.Node, _ http.ResponseWriter, req *http.Request, -) (out *memfs.Node) { +) (out *memfs.Node, statusCode int) { var ( logp = `onGet` file string @@ -206,7 +206,7 @@ func (ciigo *Ciigo) onGet( fmarkup, isNew = ciigo.watcher.getFileMarkupByHTML(file) if fmarkup == nil { // File is not HTML or no markup files created from it. - return node + return node, 0 } var err error if isNew || ciigo.converter.shouldConvert(fmarkup) { @@ -214,13 +214,13 @@ func (ciigo *Ciigo) onGet( if err != nil { log.Printf(`%s: failed to convert markup file %q: %s`, logp, fmarkup.path, err) - return node + return node, 0 } } out, err = ciigo.serveOpts.Mfs.Get(file) if err != nil { log.Printf(`%s: failed to get %q: %s`, logp, file, err) - return node + return node, 0 } - return out + return out, 0 } |
