mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
Add S2B&B2S copyright
This commit is contained in:
parent
704f0b0a4a
commit
adc535f50d
@ -62,6 +62,7 @@ func ChineseLength(str string, limit int) int {
|
|||||||
return sum
|
return sum
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// from github.com/savsgio/gotils/strconv
|
||||||
// B2S converts byte slice to a string without memory allocation.
|
// B2S converts byte slice to a string without memory allocation.
|
||||||
// See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
|
// See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
|
||||||
func B2S(b []byte) string {
|
func B2S(b []byte) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user