icns

Easily create .icns files (Mac Icons) with this Go library or the included CLI.
Log | Files | Refs | LICENSE

commit 033c0cb80ab3768cc7de7c1aa21284bd29101d8c
parent fe8561e504c5d2fc6752fe7e257226262bc49050
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Sun, 18 Feb 2018 15:44:58 +0100

[*] Shorten the function call.

Diffstat:
Mwriter.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/writer.go b/writer.go @@ -54,7 +54,11 @@ func encodeImage(img image.Image, format string) ([]byte, error) { buf := bytes.NewBuffer(nil) switch format { case "jpeg": - if err := jpeg.Encode(buf, img, &jpeg.Options{Quality: 100}); err != nil { + if err := jpeg.Encode( + buf, + img, + &jpeg.Options{Quality: 100}, + ); err != nil { return nil, err } default: