github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/value_go18.go (about) 1 //go:build go1.18 2 3 package parquet 4 5 import ( 6 "reflect" 7 "unsafe" 8 ) 9 10 // This function exists for backward compatibility with the Go 1.17 build which 11 // has a different implementation. 12 // 13 // TODO: remove when we drop support for Go versions prior to 1.18. 14 func unsafePointer(v reflect.Value) unsafe.Pointer { return v.UnsafePointer() }