utils

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToTar

func AddFileToTar(tw *tar.Writer, path, dstPath string) error

func CreateArchive

func CreateArchive(sourcePath string, w io.Writer) error

func CreateOneFileArchive

func CreateOneFileArchive(w io.Writer, filename string, data []byte) error

func Index

func Index(vs []string, t string) int

func IsFileExist added in v0.4.0

func IsFileExist(filepath string) bool

func Map

func Map(vs []string, f func(string) string) []string

func OpenArchive

func OpenArchive(dstPath string, r io.Reader) error

func RandString

func RandString(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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