diff --git a/utils/string.go b/utils/string.go index 1de14434..ad9803b7 100644 --- a/utils/string.go +++ b/utils/string.go @@ -62,6 +62,7 @@ func ChineseLength(str string, limit int) int { return sum } +// from github.com/savsgio/gotils/strconv // B2S converts byte slice to a string without memory allocation. // See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ . func B2S(b []byte) string {