From 93dfb65fae9f7c5c02587152773e8e7f50d8a498 Mon Sep 17 00:00:00 2001 From: Daniel Gurney Date: Thu, 27 Sep 2018 21:53:01 +0300 Subject: [PATCH] spacing --- png.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/png.go b/png.go index 25004f6..f9fafd4 100644 --- a/png.go +++ b/png.go @@ -3,7 +3,6 @@ package main import ( "flag" "fmt" - "github.com/satori/go.uuid" "image" "image/color" "image/png" @@ -12,6 +11,8 @@ import ( "strconv" "sync" "time" + + "github.com/satori/go.uuid" ) const version = "1.0.2" @@ -34,6 +35,7 @@ func genImg(ch chan *image.NRGBA, width, height int) { } ch <- randomImg } + func saveImg(img *image.NRGBA, width, height, amount int, wg *sync.WaitGroup) { defer wg.Done() id, err := uuid.NewV4() @@ -49,6 +51,7 @@ func saveImg(img *image.NRGBA, width, height, amount int, wg *sync.WaitGroup) { } file.Close() } + func main() { height := flag.Int("h", 500, "Height of image(s)") width := flag.Int("w", 500, "Width of image(s)")