Help us shape the future of Go! Take the 2026 Go Developer Survey

mockzip

package
v1.37.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 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