Documentation
¶
Overview ¶
Package bindata containers helpers for linking binary assets into programs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
Bundle is an assets bundle with associated options.
func (*Bundle) PackageNameOrDefault ¶
PackageNameOrDefault returns the package name or a default.
func (*Bundle) ProcessPath ¶
func (b *Bundle) ProcessPath(output io.Writer, pc PathConfig) error
ProcessPath processes a path with a given config.
type ByteWriter ¶
ByteWriter writes escaped bytes to a writer.
func NewByteWriter ¶
func NewByteWriter(wr io.Writer) *ByteWriter
NewByteWriter returns a new byte writer.
type File ¶
type File struct { Name string Modtime time.Time Contents *FileCompressor }
File is both the file metadata and the contents.
type FileCompressor ¶
type FileCompressor struct { Source io.ReadCloser MD5 hash.Hash }
FileCompressor reads a file an returns compressed output.
func NewFileCompressor ¶
func NewFileCompressor(src io.ReadCloser) *FileCompressor
NewFileCompressor returns a new file compressor.
func (*FileCompressor) Close ¶
func (fc *FileCompressor) Close() error
Close closes the source stream.
type PathConfig ¶
PathConfig is a path config.
Click to show internal directories.
Click to hide internal directories.