SkillAgentSearch skills...

Bindatafs

An Afero Fs abstraction of go-bindata assets

Install / Use

/learn @Schobers/Bindatafs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

bindatafs

Bindatafs combines the Afero file system abstraction with file embedding of go-bindata.

How to use

Getting it

go get github.com/Schobers/bindatafs

Using it

  1. Install go-bindata
  2. Generate your bindata using go-bindata
  3. Create an bindatafs file system instance:
var fs afero.Fs = bindatafs.NewFs(MustAsset, AssetInfo, AssetNames)

or

var fs afero.Fs = &bindatafs.Fs{Asset: MustAsset, Info: AssetInfo, Names: AssetNames}

Forks of go-bindata

Bindatafs works with any fork of go-bindata that provides the same API as the original, namely the methods MustAsset, AssetInfo and AssetNames. Tested with:

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated5y ago
Forks1

Languages

Go

Security Score

55/100

Audited on Aug 17, 2020

No findings