Fix linter errors

This commit is contained in:
nxshock 2017-06-23 19:31:42 +05:00
parent b37c01d93b
commit ab1c13e694
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
// Go library for cropping images by removing borders with specified color.
// Package colorcrop is a Go library for cropping images by removing borders
// with specified color.
package colorcrop
import (
@ -11,7 +12,7 @@ func Crop(img image.Image, color color.Color, thresold float64) image.Image {
return CropWithComparator(img, color, thresold, CmpRGBComponentsDiff)
}
// Crop returns cropped image with specified comparator.
// CropWithComparator returns cropped image with specified comparator.
func CropWithComparator(img image.Image, color color.Color, thresold float64, comparator comparator) image.Image {
return img.(interface {
SubImage(r image.Rectangle) image.Image