mockzip

package
v0.0.0-...-6117bb9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressGzip

func CompressGzip(content *bytes.Buffer) (*bytes.Buffer, error)

func CreateTar

func CreateTar(files []File) (*bytes.Buffer, error)

func GzippedTar

func GzippedTar(files []File) (*bytes.Buffer, error)

func Zip

func Zip(files []File) (*bytes.Buffer, error)

Types

type File

type File struct {
	// Name of the path in the archive. Forward slash should be the path separator.
	Name string

	// Content of the file.
	Content string
}

Jump to

Keyboard shortcuts

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