From 9106d7136319c4f933d45b5af12ec337c640840c Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Sun, 14 Sep 2014 00:31:28 +0200 Subject: [PATCH] Moved image saving to common. --- cmd/tilemapper/main.go | 2 +- {cmd/tilemapper => common}/image.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {cmd/tilemapper => common}/image.go (96%) diff --git a/cmd/tilemapper/main.go b/cmd/tilemapper/main.go index 8608811..227a807 100644 --- a/cmd/tilemapper/main.go +++ b/cmd/tilemapper/main.go @@ -111,7 +111,7 @@ func main() { colors.Colors, color.RGBA{R: 0xff, G: 0xff, B: 0xff, A: 0xff}) } - if err = SaveAsPNG(outfile, image); err != nil { + if err = common.SaveAsPNG(outfile, image); err != nil { log.Fatalf("writing image failed: %s", err) } diff --git a/cmd/tilemapper/image.go b/common/image.go similarity index 96% rename from cmd/tilemapper/image.go rename to common/image.go index db03040..42760b7 100644 --- a/cmd/tilemapper/image.go +++ b/common/image.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the MIT license // that can be found in the LICENSE file. -package main +package common import ( "bufio"