From 8f6e0a34257ae66b0f548296120481268c273f25 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Fri, 14 Nov 2014 14:38:19 -0800 Subject: [PATCH] fixing the readme to indicate err return from a test that I wrote in https://github.com/arschles/go-bindata-test, it looks like go-bindata generates an Asset(...) function that returns an error when the file isn't found --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 295f4f6..2345bc7 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,11 @@ To ignore files, pass in regexes using -ignore, for example: To access asset data, we use the `Asset(string) []byte` function which is included in the generated output. - data := Asset("pub/style/foo.css") - if len(data) == 0 { + data, err := Asset("pub/style/foo.css") + if err != nil { // Asset was not found. } - + // use asset data