This allows the module to be compiled using Go 1.14, as specified in the go.mod file.
reflect.Ptr was renamed to reflect.Pointer in Go 1.18 (see https://tip.golang.org/doc/go1.18). The code uses reflect.Pointer despite the go.mod file specifying a minimum Go version of 1.14. So either the go.mod file needs to be updated or the code should revert back to reflect.Ptr for as long as Go 1.14 is considered the minimum required version.
This allows the module to be compiled using Go 1.14, as specified in the go.mod file.
reflect.Ptr
was renamed toreflect.Pointer
in Go 1.18 (see https://tip.golang.org/doc/go1.18). The code usesreflect.Pointer
despite the go.mod file specifying a minimum Go version of 1.14. So either the go.mod file needs to be updated or the code should revert back toreflect.Ptr
for as long as Go 1.14 is considered the minimum required version.