OpenGFW/analyzer/utils/string.go

10 lines
160 B
Go
Raw Normal View History

2024-01-20 08:45:01 +08:00
package utils
func ByteSlicesToStrings(bss [][]byte) []string {
ss := make([]string, len(bss))
for i, bs := range bss {
ss[i] = string(bs)
}
return ss
}