tar

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tar

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

A Tar instance provides functionality for creating a tar archive.

func Create

func Create(out io.Writer) *Tar

Create opens t for writing a tar archive to out.

func (*Tar) Close

func (t *Tar) Close() error

Close closes the archive opened by Create.

func (*Tar) Write

func (t *Tar) Write(src string, dest string) error

Write writes the file at src into t at the given dest path.

Jump to

Keyboard shortcuts

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