assetutil

package
v0.60.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoad

func MustLoad(assetFunc Func) []byte

MustLoad loads an asset or panics if the asset couldn't be loaded

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error describes an asset error

func (*Error) Error

func (ae *Error) Error() string

type Func

type Func func() ([]byte, error)

Func describes an asset loading function

Jump to

Keyboard shortcuts

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