From ac541f60b5a0ccd282e1bf026c83ee8da1ebb366 Mon Sep 17 00:00:00 2001 From: Simon Waldherr Date: Fri, 19 Oct 2018 20:32:28 +0200 Subject: [PATCH] add comments to GraphicType const and badges to readme --- README.md | 2 ++ zplgfa.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bda3931..e0eef58 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![GoDoc](https://godoc.org/github.com/SimonWaldherr/zplgfa?status.svg)](https://godoc.org/github.com/SimonWaldherr/zplgfa) [![Go Report Card](https://goreportcard.com/badge/github.com/SimonWaldherr/zplgfa)](https://goreportcard.com/report/github.com/SimonWaldherr/zplgfa) +[![codebeat badge](https://codebeat.co/badges/28d795af-6f9b-453a-94c2-4fafb8b5b0d5)](https://codebeat.co/projects/github-com-simonwaldherr-zplgfa-master) +[![BCH compliance](https://bettercodehub.com/edge/badge/SimonWaldherr/zplgfa?branch=master)](https://bettercodehub.com/results/SimonWaldherr/zplgfa) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/SimonWaldherr/zplgfa/master/LICENSE) The ZPLGFA Golang package implements some functions to convert PNG, JPEG and GIF files to ZPL compatible ^GF-elements ([Graphic Fields](https://www.zebra.com/us/en/support-downloads/knowledge-articles/gf-graphic-field-zpl-command.html)). diff --git a/zplgfa.go b/zplgfa.go index fd8dec0..f791224 100644 --- a/zplgfa.go +++ b/zplgfa.go @@ -13,11 +13,11 @@ import ( type GraphicType int const ( - // using only hex characters (0-9A-F) + // ASCII graphic type using only hex characters (0-9A-F) ASCII GraphicType = iota - // saving the same data as binary + // Binary saving the same data as binary Binary - // compress the hex data via RLE + // CompressedASCII compresses the hex data via RLE CompressedASCII )