Documentation
¶
Overview ¶
Package hdf5 provides a reader and writer of HDF5 files.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents a file.
Example ¶
put := func(path string) { file, _ := Create(path) defer file.Close() A := 42 file.Put("A", A) B := []float64{1, 2, 3} file.Put("B", B) C := struct { D int E []float64 }{ D: 42, E: []float64{1, 2, 3}, } file.Put("C", C) } get := func(path string) { file, _ := Open(path) defer file.Close() A := 0 file.Get("A", &A) fmt.Println(A) B := []float64{} file.Get("B", &B) fmt.Println(B) C := struct { D int E []float64 }{} file.Get("C", &C) fmt.Println(C) } path := fixture.MakeFile() defer os.Remove(path) put(path) get(path)
Output: 42 [1 2 3] {42 [1 2 3]}
Click to show internal directories.
Click to hide internal directories.