Documentation
¶
Overview ¶
Package utils ...
Index ¶
- func ReadFloats(path string) ([]float64, error)
- func ReadInts(path string) ([]int, error)
- func ReadObject[T any](path string) (T, error)
- func ReadString(path string) (string, error)
- func WriteFloats(path string, floats []float64) error
- func WriteInts(path string, ints []int) error
- func WriteObject(path string, obj any) error
- func WriteString(path, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFloats ¶
ReadInts reads a list of integers from a file.
func ReadObject ¶
ReadObject reads a json serialized object from a file.
func ReadString ¶
ReadString reads a string from a file.
func WriteFloats ¶
WriteFloats writes a list of float64s to a file.
func WriteObject ¶
WriteObject writes an object to a file as json.
func WriteString ¶
WriteString writes a string to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.