github.com/vc42/parquet-go@v0.0.0-20240320194221-1a9adb5f23f5/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 compatiblity 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() }