// LibVersion returns version information for the HDF5 library. func LibVersion() (Version, error) { var maj, min, rel C.uint var v Version err := h5err(C.H5get_libversion(&maj, &min, &rel)) if err == nil { v.Major = uint(maj) v.Minor = uint(min) v.Release = uint(rel) } return v, err }
// Returns the HDF library release number. func GetLibVersion() (majnum, minnum, relnum uint, err error) { err = nil majnum = 0 minnum = 0 relnum = 0 c_majnum := C.uint(majnum) c_minnum := C.uint(minnum) c_relnum := C.uint(relnum) herr := C.H5get_libversion(&c_majnum, &c_minnum, &c_relnum) err = togo_err(herr) if err == nil { majnum = uint(c_majnum) minnum = uint(c_minnum) relnum = uint(c_relnum) } return }