icns

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

commit 5df269fc1af9bd7c028e8375449eb6af36e8deb0
parent d29b74d338adafe9c180b07529010c25111931e2
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Fri,  9 Feb 2018 17:41:38 +0100

[*] Moved declaration closer to its usage.

Diffstat:
Micns.go | 3+++
Mwriter.go | 3---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/icns.go b/icns.go @@ -98,6 +98,9 @@ func sizesFrom(max uint) []uint { return nil } +// OsType is a 4 character identifier used to differentiate icon types. +type OsType string + // getType returns the type for the given icon size (in px). // The boolean indicates whether the type exists. func getType(size uint) (OsType, bool) { diff --git a/writer.go b/writer.go @@ -7,9 +7,6 @@ import ( "io" ) -// OsType is a 4 character identifier used to differentiate icon types. -type OsType string - // Icon encodes an icns icon. type Icon struct { Type OsType