renamer

package
v0.56.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renamer

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

Renamer is an Archiver that just writes the first File received in AddAndClose to the underlying writer, and drops the rest. This construct is most useful for testing.

func New

func New(out io.WriteCloser) *Renamer

New returns a new Archiver for the given writer.

func (*Renamer) AddAndClose

func (a *Renamer) AddAndClose(targetPath string, f ioh.File) error

func (*Renamer) Finalize

func (a *Renamer) Finalize() error

Jump to

Keyboard shortcuts

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