$ go-bindata -ignore=\\.gitignore data/... Accessing an asset To access asset data, we use theAsset(string) ([]byte, error)function which is included in the generated output. data,err:=Asset("pub/style/foo.css")iferr!=nil{// Asset was not found.}// use asset data ...
$ go-bindata -ignore=\\.gitignore data/... Accessing an assetTo access asset data, we use the Asset(string) ([]byte, error) function which is included in the generated output.data, err := Asset("pub/style/foo.css") if err != nil { // Asset was not found. } // use asset ...