From fe3f9eba02b746cf4238e46e71fe5e0a54ad5bdd Mon Sep 17 00:00:00 2001 From: qeesung <1245712564@qq.com> Date: Sat, 3 Nov 2018 23:45:44 +0800 Subject: [PATCH] fixed the go lint issue --- ascii/ascii.go | 1 + convert/convert.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ascii/ascii.go b/ascii/ascii.go index ca460f9..7011738 100644 --- a/ascii/ascii.go +++ b/ascii/ascii.go @@ -10,6 +10,7 @@ import ( "reflect" ) +// PixelASCII is converted pixel ascii type PixelASCII struct { Char byte R uint8 diff --git a/convert/convert.go b/convert/convert.go index 1a7c905..b1d05a1 100644 --- a/convert/convert.go +++ b/convert/convert.go @@ -84,7 +84,7 @@ func (converter *ImageConverter) Image2PixelASCIIMatrix(image image.Image, image return pixelASCIIs } -// Image2PixelASCIIMatrix convert a image to a pixel ascii matrix +// ImageFile2PixelASCIIMatrix convert a image to a pixel ascii matrix func (converter *ImageConverter) ImageFile2PixelASCIIMatrix(imageFilename string, imageConvertOptions *Options) [][]ascii.PixelASCII { img, err := OpenImageFile(imageFilename) if err != nil { -- 2.45.2