Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const HeaderSize + func FormatHeader(arhdr []byte, name string, size int64) + func ReadHeader(b *bufio.Reader, name string) int + type Archive struct + Entries []Entry + func New(f *os.File) (*Archive, error) + func Parse(f *os.File, verbose bool) (*Archive, error) + func (a *Archive) AddEntry(typ EntryType, name string, mtime int64, uid, gid int, mode os.FileMode, ...) + func (a *Archive) File() *os.File + type Data struct + Offset int64 + Size int64 + type Entry struct + Gid int + Mode os.FileMode + Mtime int64 + Name string + Obj *GoObj + Type EntryType + Uid int + func (e *Entry) String() string + type EntryType int + const EntryGoObj + const EntryNativeObj + const EntryPkgDef + type ErrGoObjOtherVersion struct + func (e ErrGoObjOtherVersion) Error() string + type GoObj struct + Arch string + TextHeader []byte