MCPcopy 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
120func GetLang(lang string) string {
121 if val, ok := langs.Load(lang); ok {
122 return val.(string)
123 }
124 return "中文"
125}
126
127// 评分处理
128func ScoreFloat(score int) string {

Callers 1

IndexMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected