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