go fmt
This commit is contained in:
parent
3e4c36c4c9
commit
8167230c09
4 changed files with 15 additions and 15 deletions
|
@ -4,8 +4,8 @@
|
||||||
package draw2dbase
|
package draw2dbase
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
|
||||||
"errors"
|
"errors"
|
||||||
|
"math"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package draw2dimg
|
package draw2dimg
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
|
||||||
"image/color"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"github.com/golang/freetype/truetype"
|
||||||
"github.com/llgcode/draw2d"
|
"github.com/llgcode/draw2d"
|
||||||
"github.com/llgcode/draw2d/draw2dkit"
|
"github.com/llgcode/draw2d/draw2dkit"
|
||||||
"github.com/golang/freetype/truetype"
|
|
||||||
"golang.org/x/image/font/gofont/goregular"
|
"golang.org/x/image/font/gofont/goregular"
|
||||||
|
"image"
|
||||||
|
"image/color"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// font generated from icomoon.io and converted to go byte slice
|
// font generated from icomoon.io and converted to go byte slice
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
func TestSync(t *testing.T) {
|
func TestSync(t *testing.T) {
|
||||||
ch := make(chan int)
|
ch := make(chan int)
|
||||||
limit := 2000
|
limit := 2
|
||||||
for i := 0; i < limit; i++ {
|
for i := 0; i < limit; i++ {
|
||||||
go Draw(i, ch)
|
go Draw(i, ch)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue