redis/internal/util/safe.go

12 lines
153 B
Go
Raw Permalink Normal View History

2021-09-08 16:00:52 +03:00
//go:build appengine
2017-01-13 14:39:59 +03:00
2018-02-22 15:14:30 +03:00
package util
2017-01-13 14:39:59 +03:00
func BytesToString(b []byte) string {
return string(b)
}
2018-08-17 13:56:37 +03:00
func StringToBytes(s string) []byte {
return []byte(s)
}