Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TruthHun/BookStack
/ GetLang
Function
GetLang
utils/util.go:120–125 ·
view source on GitHub ↗
(lang string)
Source
from the content-addressed store, hash-verified
118
}
119
120
func
GetLang(lang string) string {
121
if
val, ok := langs.Load(lang); ok {
122
return
val.(string)
123
}
124
return
"中文"
125
}
126
127
// 评分处理
128
func
ScoreFloat(score int) string {
Callers
1
Index
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected