MCPcopy Index your code
hub / github.com/bytesizedhosting/bcd / AssetInfo

Function AssetInfo

plugins/plugin_data.go:918–928  ·  view source on GitHub ↗

AssetInfo 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.

(name string)

Source from the content-addressed store, hash-verified

916// It returns an error if the asset could not be found or
917// could not be loaded.
918func AssetInfo(name string) (os.FileInfo, error) {
919 cannonicalName := strings.Replace(name, "\\", "/", -1)
920 if f, ok := _bindata[cannonicalName]; ok {
921 a, err := f()
922 if err != nil {
923 return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
924 }
925 return a.info, nil
926 }
927 return nil, fmt.Errorf("AssetInfo %s not found", name)
928}
929
930// AssetNames returns the names of the assets.
931func AssetNames() []string {

Callers 1

RestoreAssetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected