diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-20 18:26:16 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-21 00:17:36 -0400 |
commit | b51fb9122deced304bf316d7f8ac3309324e35f7 (patch) | |
tree | 70ad67ad408b41b09a8961db07cd043f09d378b8 /cmd/gen-posix/main.go | |
parent | cf05f1bc0a03d02a07ee28d2d25b828f23371327 (diff) |
[ci-skip] gen-posix: Use the HTTP cache
Diffstat (limited to 'cmd/gen-posix/main.go')
-rw-r--r-- | cmd/gen-posix/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/gen-posix/main.go b/cmd/gen-posix/main.go index 354fd3f..7525719 100644 --- a/cmd/gen-posix/main.go +++ b/cmd/gen-posix/main.go @@ -5,6 +5,8 @@ import ( "fmt" "html/template" "os" + + "git.lukeshu.com/www/lib/httpcache" ) var urls = map[string]string{} @@ -182,6 +184,8 @@ var tmpl = `{{define "document"}}{{if .}} ` func mainWithError() error { + httpcache.UserAgent = "https://git.lukeshu.com/www/tree/cmd/gen-posix" + tmpl := template.Must(template.New("page").Parse(tmpl)) var out bytes.Buffer |