Add run configs. Add redis for cache. Add cache-get in player-list.
This commit is contained in:
@@ -17,3 +17,8 @@ func StringToUint(val string) uint {
|
||||
func FloatToString(val float32) string {
|
||||
return fmt.Sprintf("%f", val)
|
||||
}
|
||||
|
||||
func StringToFloat(val string) float32 {
|
||||
res, _ := strconv.ParseFloat(val, 32)
|
||||
return float32(res)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user