Sometimes opengist panics at internal/web/util.go:119 s = title.String(s) (tag: v1.7.3). I found golang.org/x/text/cases.Caser.String can't be called concurrently. Here is an example:
// go version go1.22.4 linux/amd64
title := cases.Title(language.English)
for {
go func() {
title.String("Abc fgt")
}()
}
So I move all var title = cases.Title(language.English) codes to title.String(...) as below and panics disappear.
Sometimes opengist panics at
internal/web/util.go:119 s = title.String(s)
(tag: v1.7.3). I foundgolang.org/x/text/cases.Caser.String
can't be called concurrently. Here is an example:So I move all
var title = cases.Title(language.English)
codes totitle.String(...)
as below and panics disappear.diff file(base tag v1.7.3):
I do not read the code in detail and cannot guarantee the correctness of my code. , so I don't open a pull request.