From 51e560e497aefe3cbbc4c04396347057593bb0c1 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 25 Mar 2022 17:28:48 -0500 Subject: [PATCH] fix spacing in example --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 4f901b2..b6eec8a 100644 --- a/readme.md +++ b/readme.md @@ -9,17 +9,17 @@ usage: ``` import ( "log" - "git.tuxpa.in/a/gotagonist/common/nori" + "git.tuxpa.in/a/gotagonist/common/nori" ) func main() { - n, err := nori.FromFile(filename) - if err != nil { - log.Panicln("decode: %s", err) - } + n, err := nori.FromFile(filename) + if err != nil { + log.Panicln("decode: %s", err) + } // uses apng encoder/decoder from https://gitlab.com/gfxlabs/gfximg animations, err := n.RenderAnimations(n) if err != nil { - log.Panicln("render: %s", err) + log.Panicln("render: %s", err) } // each animation has slice of frames // each frame contains an image.Image, if another format is needed