Documentation
¶
Index ¶
- func CopyDirectory(srcDir, dstDir string, replace bool) error
- func CopyFile(src, dst string, replace bool) error
- func FirstLine(r io.Reader) (string, error)
- func MapToJSONArray[K comparable, V any](m map[K]V) ([]byte, error)
- func UntarDirectory(r io.Reader, dstDir string) error
- func UnzipFile(r io.ReaderAt, size int64, destDir string) error
- func ZipFile(srcDir string, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirectory ¶
CopyDirectory copies the files inside `srcDir` into `dstDir` without recursion. Skip non-regular files.
func MapToJSONArray ¶
func MapToJSONArray[K comparable, V any](m map[K]V) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.