From adc535f50d27d5934024f14a7eb18c5fcdda4621 Mon Sep 17 00:00:00 2001 From: Lin <767763591@qq.com> Date: Sun, 17 Jan 2021 16:17:44 +0800 Subject: [PATCH] Add S2B&B2S copyright --- utils/string.go | 1 + 1 file changed, 1 insertion(+) 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 {