From 1c50607cb3e2e580a101fd8f799b61e98963ba9c Mon Sep 17 00:00:00 2001 From: Simon Waldherr Date: Fri, 19 Oct 2018 20:21:49 +0200 Subject: [PATCH] golint, misspell --- zplgfa.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zplgfa.go b/zplgfa.go index 05ee3a5..fd8dec0 100644 --- a/zplgfa.go +++ b/zplgfa.go @@ -13,8 +13,11 @@ import ( type GraphicType int const ( + // using only hex characters (0-9A-F) ASCII GraphicType = iota + // saving the same data as binary Binary + // compress the hex data via RLE CompressedASCII ) @@ -133,7 +136,7 @@ func compressASCII(in string) string { // 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 // 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 { var gfType string var lastLine string