asset

package
v1.6.2-tectonic.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package asset abstracts generated asset representations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZipAssets

func ZipAssets(assets []Asset) ([]byte, error)

ZipAssets zips and provides the result back as a []byte

Types

type Asset

type Asset interface {
	Name() string
	Data() []byte
}

Asset is a named byte slice.

func Find

func Find(assets []Asset, name string) (Asset, error)

Find returns the Asset with the given name.

func New

func New(name string, data []byte) Asset

New returns a new Asset.

func Replace

func Replace(assets []Asset, asset Asset) ([]Asset, error)

Replace inserts the given Asset or replaces an Asset that has the same name.

Jump to

Keyboard shortcuts

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