mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Remove unnecessary lines from examples
This commit is contained in:
parent
c7fe0bb79e
commit
4d01a57714
1 changed files with 0 additions and 5 deletions
|
@ -3,7 +3,6 @@ package colorcrop_test
|
||||||
import (
|
import (
|
||||||
"image/color"
|
"image/color"
|
||||||
"image/png"
|
"image/png"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/nxshock/colorcrop"
|
"github.com/nxshock/colorcrop"
|
||||||
|
@ -11,8 +10,6 @@ import (
|
||||||
|
|
||||||
// Simple remove of white borders.
|
// Simple remove of white borders.
|
||||||
func ExampleCrop() {
|
func ExampleCrop() {
|
||||||
log.SetFlags(0)
|
|
||||||
|
|
||||||
// Read source image
|
// Read source image
|
||||||
sourceFile, _ := os.Open("img.png")
|
sourceFile, _ := os.Open("img.png")
|
||||||
defer sourceFile.Close()
|
defer sourceFile.Close()
|
||||||
|
@ -34,8 +31,6 @@ func ExampleCrop() {
|
||||||
|
|
||||||
// Remove white borders with custom color comparator.
|
// Remove white borders with custom color comparator.
|
||||||
func ExampleCropWithComparator() {
|
func ExampleCropWithComparator() {
|
||||||
log.SetFlags(0)
|
|
||||||
|
|
||||||
// Read source image
|
// Read source image
|
||||||
sourceFile, _ := os.Open("img.png")
|
sourceFile, _ := os.Open("img.png")
|
||||||
defer sourceFile.Close()
|
defer sourceFile.Close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue