shad-go/lectures/11-runtime/escape/main.go

15 lines
123 B
Go
Raw Permalink Normal View History

package main
var g any
func main() {
p0 := make([]byte, 10)
p0[0] = 'f'
var p1 [10]byte
copy(p1[:], p0)
g = p1
}