派生自 webserver
extend/util/util.go @@ -189,4 +189,9 @@ } } return buffer.String() } func ParseScore(compareScore float32) float32 { f, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", compareScore*100), 32) return float32(f) }