Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachments ¶
type Attachments struct {
// contains filtered or unexported fields
}
Attachments represent embedded data in an executable.
func Open ¶
func Open() (*Attachments, error)
Open returns the attachments of the running executable.
func OpenExe ¶
func OpenExe(exePath string) (*Attachments, error)
OpenExe returns the attachments of an arbitrary executable.
func (*Attachments) Close ¶
func (a *Attachments) Close() error
Close the executable containing the attachments. Close will return an error if it has already been called.
func (*Attachments) Count ¶
func (a *Attachments) Count() int
Count returns the number of attachments.
func (*Attachments) List ¶
func (a *Attachments) List() []string
List returns a list containing the names of all attachments.
func (*Attachments) Reader ¶
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 (*Attachments) Size ¶
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.
Click to show internal directories.
Click to hide internal directories.