aboutsummaryrefslogtreecommitdiff
path: root/resources.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-30 17:56:44 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-30 17:56:44 +0800
commit9f01408ea7bb68684ec709fe1dabafd20254e055 (patch)
tree3ebc780eb406f9d41b853cfb751ad811706c22a4 /resources.go
parentAdd basic tabs to repo index (diff)
downloadforge-9f01408ea7bb68684ec709fe1dabafd20254e055.tar.gz
forge-9f01408ea7bb68684ec709fe1dabafd20254e055.tar.zst
forge-9f01408ea7bb68684ec709fe1dabafd20254e055.zip
Avoid allocations by using unsafe strinng/bytes conversions
Diffstat (limited to 'resources.go')
-rw-r--r--resources.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources.go b/resources.go
index df992ba..6d32136 100644
--- a/resources.go
+++ b/resources.go
@@ -67,7 +67,7 @@ func loadTemplates() (err error) {
return err
}
- _, err = templates.Parse(string(minified))
+ _, err = templates.Parse(bytesToString(minified))
if err != nil {
return err
}