diff --git a/cmd/tilemapper/main.go b/cmd/tilemapper/main.go index 0d1de61..8608811 100644 --- a/cmd/tilemapper/main.go +++ b/cmd/tilemapper/main.go @@ -45,9 +45,9 @@ func main() { flag.Parse() var err error - var colors *Colors + var colors *common.Colors - if colors, err = ParseColors(colorsfile); err != nil { + if colors, err = common.ParseColors(colorsfile); err != nil { log.Fatalf("Cannot open color file: %s", err) } diff --git a/cmd/tilemapper/colors.txt b/colors.txt similarity index 100% rename from cmd/tilemapper/colors.txt rename to colors.txt diff --git a/cmd/tilemapper/colors.go b/common/colors.go similarity index 98% rename from cmd/tilemapper/colors.go rename to common/colors.go index 90f3a9d..3fdb858 100644 --- a/cmd/tilemapper/colors.go +++ b/common/colors.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"