packer

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackReader

func PackReader(reader io.Reader) []byte

func UnpackReader

func UnpackReader(reader io.Reader) []byte

Types

type ErrResourceNotFound

type ErrResourceNotFound struct {
	Name string
}

func (ErrResourceNotFound) Error

func (e ErrResourceNotFound) Error() string

type Packer

type Packer map[string][]byte

func (*Packer) AddResource

func (p *Packer) AddResource(name string, data []byte)

func (*Packer) AddResourceReader

func (p *Packer) AddResourceReader(name string, reader io.Reader)

func (*Packer) Dump

func (p *Packer) Dump(packageName, outfile string)

func (*Packer) Dumps

func (p *Packer) Dumps(packageName string) []byte

func (*Packer) GetResource

func (p *Packer) GetResource(name string) ([]byte, error)

Jump to

Keyboard shortcuts

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