mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Fix go vet errors
This commit is contained in:
parent
28d09be6b5
commit
d08980b7e3
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
||||||
// Copyright 2012 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
package colorcrop_test
|
package colorcrop_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -12,7 +9,7 @@ import (
|
||||||
"github.com/nxshock/colorcrop"
|
"github.com/nxshock/colorcrop"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleBasicUsage() {
|
func ExampleCrop() {
|
||||||
log.SetFlags(0)
|
log.SetFlags(0)
|
||||||
|
|
||||||
// Read source image
|
// Read source image
|
||||||
|
@ -34,7 +31,7 @@ func ExampleBasicUsage() {
|
||||||
png.Encode(croppedFile, croppedImage)
|
png.Encode(croppedFile, croppedImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleCustomComparator() {
|
func ExampleCropWithComparator() {
|
||||||
log.SetFlags(0)
|
log.SetFlags(0)
|
||||||
|
|
||||||
// Read source image
|
// Read source image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue