Fix Asset signature in README.
See https://github.com/jteeuwen/go-bindata/pull/54#discussion_r20400279.
This commit is contained in:
parent
1796683e4d
commit
0e05e3a19d
|
@ -53,7 +53,7 @@ To ignore files, pass in regexes using -ignore, for example:
|
||||||
|
|
||||||
### Accessing an asset
|
### Accessing an asset
|
||||||
|
|
||||||
To access asset data, we use the `Asset(string) []byte` function which
|
To access asset data, we use the `Asset(string) ([]byte, error)` function which
|
||||||
is included in the generated output.
|
is included in the generated output.
|
||||||
|
|
||||||
data, err := Asset("pub/style/foo.css")
|
data, err := Asset("pub/style/foo.css")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user