Migrate old externs 7/x

This commit is contained in:
2026-06-16 08:33:04 +08:00
parent 3bc6957677
commit c2fb5b205a
51 changed files with 390 additions and 317 deletions
+9 -7
View File
@@ -24,14 +24,16 @@ func main() {
log.Fatal(err)
}
options := compilecache.Options{
Workers: 2,
QueueSize: 128,
DisableCache: false,
}
h := handler{
r: r,
jsCache: compilecache.New(
closure.NewCompiler(), 2, 128,
),
cssCache: compilecache.New(
css.NewEsbuildCompiler(), 2, 128,
),
r: r,
jsCache: compilecache.New(closure.NewCompiler(), options),
cssCache: compilecache.New(css.NewEsbuildCompiler(), options),
}
http.HandleFunc("/", h.index)
log.Printf("botan-api listening on %s", *addr)