import "github.com/maja42/ember"
attachement.go errors.go marker.go
AttErr reports problems with embedded attachments.
type Attachments struct {
// contains filtered or unexported fields
}
Attachments represent embedded data in an executable.
func Open() (*Attachments, error)
Open returns the attachments of the running executable.
func OpenExe(exePath string) (*Attachments, error)
OpenExe returns the attachments of an arbitrary executable.
func (a *Attachments) Close() error
Close the executable containing the attachments. Close will return an error if it has already been called.
func (a *Attachments) Count() int
Count returns the number of attachments.
func (a *Attachments) List() []string
List returns a list containing the names of all attachments.
func (a *Attachments) Reader(name string) Reader
Reader returns a reader for a given attachment. Returns nil if no attachment with that name exists.
func (a *Attachments) Size(name string) int64
Size returns the size of a specific attachment in bytes. Returns zero if no attachment with that name exists.
Reader groups basic methods available on attachments.
Path | Synopsis |
---|---|
embedding | |
internal |
Package ember imports 7 packages (graph). Updated 2021-01-16. Refresh now. Tools for package owners.