Documentation
¶
Overview ¶
Package ggpack reads and writes ggpack files.
Index ¶
- type Pack
- type Packer
- func (p *Packer) Finish() error
- func (p *Packer) SetKey(key xor.Key)
- func (p *Packer) Write(filenameInPack string, r io.Reader, size int64) error
- func (p *Packer) WriteFile(path string) error
- func (p *Packer) WriteFileAs(filenameInPack, sourceFilePath string) error
- func (p *Packer) WriteFiles(paths []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pack ¶
type Pack struct {
// contains filtered or unexported fields
}
Pack provides read access to the contents of a ggpack file. It implements the fs.FS, fs.ReadDirFS and io.Closer interfaces.
func OpenUsingKey ¶
OpenUsingKey is the same as Open, but uses a different key than the default key (xor.DefaultKey) for XOR decryption of the pack.
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
func (*Packer) SetKey ¶
SetKey sets the key for XOR encryption, if a different key than the default key (xor.DefaultKey) should be used. The key should be set before any write operations.
func (*Packer) WriteFileAs ¶
func (*Packer) WriteFiles ¶
Click to show internal directories.
Click to hide internal directories.