You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/amd64title:=cases.Title(language.English)
for {
gofunc() {
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.
The text was updated successfully, but these errors were encountered: