assets

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(path string) ([]byte, error)

Asset loads and returns the asset for the given path (relative to the "pkg/assets" directory). It returns an error if the asset could not be found or could not be loaded.

func MustAsset

func MustAsset(path string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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