chain

package
v0.0.0-...-a4b6567 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetAndInfo

type AssetAndInfo func(name string) (data []byte, info os.FileInfo, err error)

AssetAndInfo represents the generated AssetAndInfo method.

type AssetAndInfoChain

type AssetAndInfoChain []AssetAndInfo

AssetAndInfoChain represents a chain of AssetAndInfo methods that will be called in turn.

func (AssetAndInfoChain) AssetAndInfo

func (ch AssetAndInfoChain) AssetAndInfo(name string) (data []byte, info os.FileInfo, err error)

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

It tries each AssetAndInfo in the chain and returns the first successful result or the first error that is not os.ErrNotExist.

Jump to

Keyboard shortcuts

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