utils

package
v0.0.0-...-f3eb9b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(srcDir, dstDir string, replace bool) error

CopyDirectory copies the files inside `srcDir` into `dstDir` without recursion. Skip non-regular files.

func CopyFile

func CopyFile(src, dst string, replace bool) error

func FirstLine

func FirstLine(r io.Reader) (string, error)

func MapToJSONArray

func MapToJSONArray[K comparable, V any](m map[K]V) ([]byte, error)

func UntarDirectory

func UntarDirectory(r io.Reader, dstDir string) error

func UnzipFile

func UnzipFile(r io.ReaderAt, size int64, destDir string) error

func ZipFile

func ZipFile(srcDir string, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL