diff --git a/go/arrow/extensions/opaque.go b/go/arrow/extensions/opaque.go index d296cddac3f1b..5378de0c1806d 100644 --- a/go/arrow/extensions/opaque.go +++ b/go/arrow/extensions/opaque.go @@ -35,6 +35,7 @@ type OpaqueType struct { VendorName string `json:"vendor_name"` } +// NewOpaqueType creates a new OpaqueType with the provided storage type, type name, and vendor name. func NewOpaqueType(storageType arrow.DataType, name, vendorName string) *OpaqueType { return &OpaqueType{ExtensionBase: arrow.ExtensionBase{Storage: storageType}, TypeName: name, VendorName: vendorName}