Closed cuonglm closed 2 years ago
Per https://pkg.go.dev/unsafe rule 6thm reflect.SliceHeader should never be used as a plain struct. Instead, use unsafe.Slice which is a safer way to construct slice unsafely.
@cuonglm can you run go test *.go in your branch ?
go test *.go
Test passes!
$ go1.19 test PASS ok github.com/alphadose/haxmap 4.697s
Per https://pkg.go.dev/unsafe rule 6thm reflect.SliceHeader should never be used as a plain struct. Instead, use unsafe.Slice which is a safer way to construct slice unsafely.