cl/_testlibgo: bytes strings

This commit is contained in:
visualfc
2024-06-26 20:30:00 +08:00
parent e217d39882
commit 8169d8509f
6 changed files with 312 additions and 3 deletions

15
cl/_testlibgo/bytes/in.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"bytes"
)
func main() {
var b bytes.Buffer // A Buffer needs no initialization.
b.Write([]byte("Hello "))
b.WriteString("World")
println("buf", b.Bytes(), b.String())
println(bytes.EqualFold([]byte("Go"), []byte("go")))
}