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)
| 916 | // It returns an error if the asset could not be found or |
| 917 | // could not be loaded. |
| 918 | func 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. |
| 931 | func AssetNames() []string { |