@@ -17,7 +17,7 @@ import (
1717)
1818
1919type Datatype struct {
20- Location
20+ Identifier
2121}
2222
2323type TypeClass C.H5T_class_t
@@ -105,7 +105,7 @@ func OpenDatatype(c CommonFG, name string, tapl_id int) (*Datatype, error) {
105105
106106// NewDatatype creates a Datatype from an hdf5 id.
107107func NewDatatype (id C.hid_t ) * Datatype {
108- t := & Datatype {Location { Identifier {id } }}
108+ t := & Datatype {Identifier {id }}
109109 runtime .SetFinalizer (t , (* Datatype ).finalizer )
110110 return t
111111}
@@ -208,7 +208,7 @@ func NewArrayType(base_type *Datatype, dims []int) (*ArrayType, error) {
208208 if err := checkID (hid ); err != nil {
209209 return nil , err
210210 }
211- t := & ArrayType {Datatype {Location { Identifier {hid } }}}
211+ t := & ArrayType {Datatype {Identifier {hid }}}
212212 runtime .SetFinalizer (t , (* ArrayType ).finalizer )
213213 return t , nil
214214}
@@ -246,7 +246,7 @@ func NewVarLenType(base_type *Datatype) (*VarLenType, error) {
246246 if err := checkID (id ); err != nil {
247247 return nil , err
248248 }
249- t := & VarLenType {Datatype {Location { Identifier {id } }}}
249+ t := & VarLenType {Datatype {Identifier {id }}}
250250 runtime .SetFinalizer (t , (* VarLenType ).finalizer )
251251 return t , nil
252252}
@@ -267,7 +267,7 @@ func NewCompoundType(size int) (*CompoundType, error) {
267267 if err := checkID (id ); err != nil {
268268 return nil , err
269269 }
270- t := & CompoundType {Datatype {Location { Identifier {id } }}}
270+ t := & CompoundType {Datatype {Identifier {id }}}
271271 runtime .SetFinalizer (t , (* CompoundType ).finalizer )
272272 return t , nil
273273}
0 commit comments