Versions in this module Expand all Collapse all v1 v1.0.0 Oct 12, 2018 Changes in this version + const HeaderSize + var ErrFileTooBig = errors.New("vpk: file too big") + var ErrInvalidMagic = errors.New("vpk: invalid magic number") + func Create(c Creator, contents []Entry, maxSize int64) (err error) + type Creator interface + Archive func(index int16) (io.WriteCloser, error) + Main func() (io.WriteCloser, error) + func MultiVPKCreator(prefix string) Creator + func SingleVPKCreator(path string) Creator + type Entry interface + Open func() (io.ReadCloser, error) + Rel func() string + type ErrCRCMismatch struct + Actual uint32 + Expected uint32 + func (err ErrCRCMismatch) Error() string + type ErrInvalidEntry struct + Base string + Dir string + Ext string + func (err ErrInvalidEntry) Error() string + type ErrUnsupportedVersion uint32 + func (err ErrUnsupportedVersion) Error() string + type File interface + Stat func() (os.FileInfo, error) + type Opener interface + Archive func(index int16) (File, error) + Main func() (File, error) + func MultiVPK(prefix string) Opener + func SingleVPK(path string) Opener + type VPK struct + func Open(o Opener) (*VPK, error) + func (v *VPK) Entry(rel string) Entry + func (v *VPK) Paths() []string + func (vpk *VPK) Open(rel string) (http.File, error)