diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -44,7 +44,11 @@ func main() { if err != nil { return err } - return c.Blob(200, "image/png", img) + blob, err := static.AsBytes(img) + if err != nil { + return err + } + return c.Blob(200, "image/png", blob) }) log.Fatal(e.Start(":8000")) } |