Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoFilesMatched is returned if no files could be found in the given paths ErrNoFilesMatched = fmt.Errorf("no files matched the path provided") )
Functions ¶
Types ¶
type ArchiverLayer ¶
type ArchiverLayer int
ArchiverLayer -
const ( // NoArchiver - NoArchiver ArchiverLayer = iota // Tar - Tar )
func (ArchiverLayer) String ¶
func (a ArchiverLayer) String() string
type CompressorLayer ¶
type CompressorLayer int
CompressorLayer -
const ( // NoCompressor - NoCompressor CompressorLayer = iota // Bz - Bz )
func (CompressorLayer) String ¶
func (c CompressorLayer) String() string
type Option ¶
type Option func(*Options)
Option -
func Archiver ¶
func Archiver(a ArchiverLayer) Option
Archiver defines the archiver to use (defaults to tar).
func Compressor ¶
func Compressor(c CompressorLayer) Option
Compressor defines the compressor to use (default to bz).
func OutputFile ¶
OutputFile defines the name of the output file that is being generated.
func PackageName ¶
PackageName defines the package name that should appear in the generated file.
type Options ¶
type Options struct { Paths []string PackageName string OutputFile string Archiver ArchiverLayer Compressor CompressorLayer }
Options -
Source Files ¶
Click to show internal directories.
Click to hide internal directories.