aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2026-02-11 12:03:39 +0700
committerShulhan <m.shulhan@gmail.com>2026-04-09 22:18:08 +0700
commit2fe4e6c9deeafa59f146503233d426af2492375d (patch)
tree9577766a702ee8977d901bf32c4a074736ffbeba /cmd
parent7da06c8e528ba49ba93770418e5182184688855b (diff)
downloadgo-x-proposal-2fe4e6c9deeafa59f146503233d426af2492375d.tar.xz
go.mod: update all dependencies
Diffstat (limited to 'cmd')
-rw-r--r--cmd/www-go-proposal/main.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/cmd/www-go-proposal/main.go b/cmd/www-go-proposal/main.go
index 6d8df0c..2581186 100644
--- a/cmd/www-go-proposal/main.go
+++ b/cmd/www-go-proposal/main.go
@@ -10,6 +10,7 @@ import (
"strings"
"git.sr.ht/~shulhan/ciigo"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/http"
"git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
"git.sr.ht/~shulhan/pakakeh.go/lib/systemd"
)
@@ -18,8 +19,11 @@ var memFS *memfs.MemFS
func main() {
var convertOpts = ciigo.ConvertOptions{
- Root: `.`,
- Exclude: []string{`(cmd|.git|go.mod|go.sum)`},
+ Root: `.`,
+ Exclude: []string{
+ `(cmd|.git|go.mod|go.sum)`,
+ `www-go-proposal`,
+ },
HTMLTemplate: `html.tmpl`,
}
var embedOpts = ciigo.EmbedOptions{
@@ -30,8 +34,9 @@ func main() {
},
}
var serveOpts = ciigo.ServeOptions{
- ConvertOptions: convertOpts,
- Mfs: memFS,
+ ServerOptions: http.ServerOptions{
+ Memfs: memFS,
+ },
}
flag.BoolVar(&serveOpts.IsDevelopment, `dev`, false,
@@ -62,7 +67,7 @@ func main() {
gotAddr, serveOpts.Address)
}
}
- err = ciigo.Serve(serveOpts)
+ err = ciigo.Serve(serveOpts, convertOpts)
}
if err != nil {
log.Fatal(err)