package
module
Version:
v0.0.0-...-d11aede
Opens a new window with list of versions in this module.
Published: May 21, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
EXPERIMENTAL TextBundle library for Go
This is a little Go library for working with TextBundle resources.
Documentation
¶
Asset is a light wrapper around zip.File that trims the filename.
type Metadata struct {
Version int `json:"version"`
Type string `json:"type,omitempty"`
Transient bool `json:"transient,omitempty"`
CreatorURL string `json:"creatorURL,omitempty"`
CreatorIdentifier string `json:"creatorIdentifier,omitempty"`
SourceURL string `json:"sourceURL,omitempty"`
}
Reader allows access the seperate Assets of a TextBundle, its content, and
the associated metadata.
OpenReader creates a new Reader from the given file path.
type Writer struct {
Metadata Metadata
}
NewWriter creates a new writer which should be persisted to the out.
Close finalizes the bundles metadata and closes the underlying writer.
CreateAsset creates a new asset file with the given name.
Flush flushes the underlying writer.
SetText writes Content.textbundle/text.$typ.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.