Documentation ¶ Index ¶ func CompressGzip(content *bytes.Buffer) (*bytes.Buffer, error) func CreateTar(files []File) (*bytes.Buffer, error) func GzippedTar(files []File) (*bytes.Buffer, error) func Zip(files []File) (*bytes.Buffer, error) type File 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 } Source Files ¶ View all Source files mockzip.go Click to show internal directories. Click to hide internal directories.