targz

package
v0.0.0-...-c608f4e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package targz implements the Archive interface providing tar.gz archiving and compression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

Archive as tar.gz

func New

func New(target io.Writer, level int) (*Archive, error)

New tar.gz archive

func (Archive) Add

func (a Archive) Add(name, path string) error

Add file to the archive

func (Archive) AddFromString

func (a Archive) AddFromString(name, content string, mode int64) error

Add file from content to the archive

func (Archive) Close

func (a Archive) Close() error

Close all closeables

Jump to

Keyboard shortcuts

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