by 2h · 3y ago · 0 comments
package main
func foo(a []byte) {
println(len(a))
}
func main() {
var b []byte
// cannot use &b (value of type *[]byte) as []byte value in argument to foo
foo(&b)
}https://lemire.me/blog/2020/09/03/sentinels-can-be-faster/?a...
package main
import "fmt"
func main() {
fmt.Printf("%q\n", "hello \x00 world")
}