textbundle

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 7 Imported by: 0

README

go-textbundle

Lib for reading TextBundle files

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtErr = errors.New("Only support .textbundle or .textpack files")

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path string
	Data *bytes.Reader
}

type MetaData

type MetaData struct {
	Version           int    `json:version`
	Type              string `json:type`
	Transient         bool   `json:transient`
	CreatorURL        string `json:creatorURL`
	CreatorIdentifier string `json:creatorIdentifier`
	SourceURL         string `json:sourceURL`
}

type TextBundle

type TextBundle struct {
	MetaData MetaData
	Text     []byte
	Assets   []Asset
}

func Load

func Load(path string) (*TextBundle, error)

func LoadBunlde

func LoadBunlde(path string) (*TextBundle, error)

func LoadPack

func LoadPack(path string) (*TextBundle, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL