golint, misspell

This commit is contained in:
Simon Waldherr
2018-10-19 20:21:49 +02:00
parent 30005e0aa8
commit 1c50607cb3

View File

@@ -13,8 +13,11 @@ import (
type GraphicType int type GraphicType int
const ( const (
// using only hex characters (0-9A-F)
ASCII GraphicType = iota ASCII GraphicType = iota
// saving the same data as binary
Binary Binary
// compress the hex data via RLE
CompressedASCII CompressedASCII
) )
@@ -133,7 +136,7 @@ func compressASCII(in string) string {
// ConvertToGraphicField converts an image.Image picture to a ZPL compatible Graphic Field. // ConvertToGraphicField converts an image.Image picture to a ZPL compatible Graphic Field.
// The ZPL ^GF (Graphic Field) supports various data formats, this package supports the // The ZPL ^GF (Graphic Field) supports various data formats, this package supports the
// normal ASCII encoded, as well as a RLE compressed ASCII format. It also supports the // normal ASCII encoded, as well as a RLE compressed ASCII format. It also supports the
// Binary Graphic Field format. The encoding can be choosen by the second argument. // Binary Graphic Field format. The encoding can be chosen by the second argument.
func ConvertToGraphicField(source image.Image, graphicType GraphicType) string { func ConvertToGraphicField(source image.Image, graphicType GraphicType) string {
var gfType string var gfType string
var lastLine string var lastLine string