Documentation ¶
Index ¶
- func ReadFilesFromFs(sys fs.FS) (out map[string][]byte, err error)
- func ReadGobFromPath[T any](path string) (out T, err error)
- func ReadJsonFromPath[T any](path string) (out T, err error)
- func WriteFilesFromMap(in map[string][]byte, prefix string) (err error)
- func WriteGobToPath[T any](in T, path string) (err error)
- func WriteJsonToPath[T any](in T, path string) (err error)
- func WriteTempFilesFromMap(in map[string][]byte) (prefix string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFilesFromFs ¶
ReadFilesFromFs reads every file from a file system into a memory map.
func ReadGobFromPath ¶
ReadGobFromPath reads data from a Gob file into a struct.
func ReadJsonFromPath ¶ added in v0.11.9
ReadJsonFromPath reads data from a JSON file into a struct.
func WriteFilesFromMap ¶
WriteFilesFromMap writes every file from the map to the file system.
func WriteGobToPath ¶
WriteGobToPath encodes data as Gob and saves it to the filesystem by path.
func WriteJsonToPath ¶ added in v0.11.9
WriteJsonToPath encodes data as JSON and saves it to the filesystem by path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.