utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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 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