Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver interface { Extract(archiveFile string, targetDir string, replacements map[string]interface{}) error LoadManifestFile(src string) ([]byte, error) }
Archiver handles archive files.
type Processor ¶
type Processor interface {
Process(content []byte, target io.Writer, replacements map[string]interface{}) error
}
Processor replaces placeholders in text content with values.
type TemplateProcessor ¶
type TemplateProcessor struct { }
TemplateProcessor replaces placeholders in text content with values using Go's templating functionality.
type ZIPArchiver ¶
type ZIPArchiver struct {
Processor Processor
}
ZIPArchiver handles ZIP archive files.
func (*ZIPArchiver) Extract ¶
func (a *ZIPArchiver) Extract(archiveFile string, targetDir string, replacements map[string]interface{}) error
Extract expands the contents of a ZIP file.
func (*ZIPArchiver) LoadManifestFile ¶
func (a *ZIPArchiver) LoadManifestFile(src string) ([]byte, error)
LoadManifestFile loads the manifest from a ZIP file.
Click to show internal directories.
Click to hide internal directories.