Documentation ¶
Index ¶
- func MustNewBindataFs(assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn) afero.Fs
- func NewBindataFs(assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn) (afero.Fs, error)
- func WriteAssetsInDirectory(fs afero.Fs, assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn, ...) error
- type AssetDirFn
- type AssetFn
- type AssetInfoFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewBindataFs ¶
func MustNewBindataFs(assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn) afero.Fs
MustNewBindataFs creates a afero.Fs using specified assets. Errors will lead to panic.
func NewBindataFs ¶
func NewBindataFs(assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn) (afero.Fs, error)
NewBindataFs creates a afero.Fs using specified assets. Errors may be returned.
func WriteAssetsInDirectory ¶
func WriteAssetsInDirectory(fs afero.Fs, assetFn AssetFn, assetInfoFn AssetInfoFn, assetDirFn AssetDirFn, targetBaseDir, srcBaseDir, dirPath string) error
WriteAssetsInDirectory writes assets in `dirPath` to a afero.Fs directory `targetBaseDir`.
Types ¶
type AssetDirFn ¶
Click to show internal directories.
Click to hide internal directories.