definitions

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipAsset

func GzipAsset(name string) ([]byte, error)

GzipAsset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func GzipAssetDir

func GzipAssetDir(name string) ([]string, error)

GzipAssetDir returns the file names below a certain directory embedded in the file by bindata. For example if you run bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then GzipAssetDir("data") would return []string{"foo.txt", "img"} GzipAssetDir("data/img") would return []string{"a.png", "b.png"} GzipAssetDir("foo.txt") and GzipAssetDir("notexist") would return an error GzipAssetDir("") will return []string{"data"}.

func GzipAssetInfo

func GzipAssetInfo(name string) (os.FileInfo, error)

GzipAssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func GzipAssetNames

func GzipAssetNames() []string

GzipAssetNames returns the names of the assets. nolint: deadcode

func MustGzipAsset

func MustGzipAsset(name string) []byte

MustGzipAsset is like GzipAsset but panics when GzipAsset would return an error. It simplifies safe initialization of global variables. nolint: deadcode

func UnzipData

func UnzipData(data []byte) (resData []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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