1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00
This commit is contained in:
Vladimir Mihailenco
2018-07-22 09:27:36 +03:00
parent 585aea1e8d
commit 7c9aa65a40
3 changed files with 26 additions and 24 deletions

View File

@ -99,3 +99,15 @@ func (w *WriteBuffer) AppendBytes(p []byte) {
w.b = append(w.b, p...)
w.b = append(w.b, '\r', '\n')
}
func formatInt(n int64) string {
return strconv.FormatInt(n, 10)
}
func formatUint(u uint64) string {
return strconv.FormatUint(u, 10)
}
func formatFloat(f float64) string {
return strconv.FormatFloat(f, 'f', -1, 64)
}