all: sort and group imports

Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
This commit is contained in:
Walter Werner SCHNEIDER
2020-12-17 05:09:22 +02:00
committed by Elias Naur
parent e383e6d6be
commit 83d23ab507
16 changed files with 36 additions and 22 deletions
+2 -1
View File
@@ -9,9 +9,10 @@ import (
"math"
"unsafe"
"golang.org/x/sys/windows"
"gioui.org/gpu/backend"
gunsafe "gioui.org/internal/unsafe"
"golang.org/x/sys/windows"
)
const debug = false
+2 -1
View File
@@ -19,6 +19,8 @@ import (
"time"
"unsafe"
syscall "golang.org/x/sys/unix"
"gioui.org/app/internal/xkb"
"gioui.org/f32"
"gioui.org/internal/fling"
@@ -27,7 +29,6 @@ import (
"gioui.org/io/pointer"
"gioui.org/io/system"
"gioui.org/unit"
syscall "golang.org/x/sys/unix"
)
// Use wayland-scanner to generate glue code for the xdg-shell and xdg-decoration extensions.
+2 -1
View File
@@ -42,8 +42,9 @@ import (
"gioui.org/io/system"
"gioui.org/unit"
"gioui.org/app/internal/xkb"
syscall "golang.org/x/sys/unix"
"gioui.org/app/internal/xkb"
)
type x11Window struct {
+3 -2
View File
@@ -11,8 +11,6 @@ import (
"fmt"
"sync"
"gioui.org/font/opentype"
"gioui.org/text"
"golang.org/x/image/font/gofont/gobold"
"golang.org/x/image/font/gofont/gobolditalic"
"golang.org/x/image/font/gofont/goitalic"
@@ -25,6 +23,9 @@ import (
"golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/font/gofont/gosmallcaps"
"golang.org/x/image/font/gofont/gosmallcapsitalic"
"gioui.org/font/opentype"
"gioui.org/text"
)
var (
+4 -3
View File
@@ -10,13 +10,14 @@ import (
"unicode"
"unicode/utf8"
"golang.org/x/image/font"
"golang.org/x/image/font/sfnt"
"golang.org/x/image/math/fixed"
"gioui.org/f32"
"gioui.org/op"
"gioui.org/op/clip"
"gioui.org/text"
"golang.org/x/image/font"
"golang.org/x/image/font/sfnt"
"golang.org/x/image/math/fixed"
)
// Font implements text.Face. Its methods are safe to use
+4 -3
View File
@@ -10,13 +10,14 @@ import (
"strings"
"testing"
"gioui.org/internal/ops"
"gioui.org/op"
"gioui.org/text"
"golang.org/x/image/font"
"golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/font/sfnt"
"golang.org/x/image/math/fixed"
"gioui.org/internal/ops"
"gioui.org/op"
"gioui.org/text"
)
func TestCollectionAsFace(t *testing.T) {
+1 -2
View File
@@ -4,9 +4,8 @@ package d3dcompile
import (
"fmt"
"unsafe"
"syscall"
"unsafe"
gunsafe "gioui.org/internal/unsafe"
+2 -1
View File
@@ -5,11 +5,12 @@ import (
"math"
"testing"
"golang.org/x/image/colornames"
"gioui.org/f32"
"gioui.org/op"
"gioui.org/op/clip"
"gioui.org/op/paint"
"golang.org/x/image/colornames"
)
func TestPaintRect(t *testing.T) {
+2 -1
View File
@@ -6,12 +6,13 @@ import (
"math"
"testing"
"golang.org/x/image/colornames"
"gioui.org/f32"
"gioui.org/internal/f32color"
"gioui.org/op"
"gioui.org/op/clip"
"gioui.org/op/paint"
"golang.org/x/image/colornames"
)
func TestTransformMacro(t *testing.T) {
+2 -1
View File
@@ -5,11 +5,12 @@ import (
"math"
"testing"
"golang.org/x/image/colornames"
"gioui.org/f32"
"gioui.org/op"
"gioui.org/op/clip"
"gioui.org/op/paint"
"golang.org/x/image/colornames"
)
func TestPaintOffset(t *testing.T) {
+2 -1
View File
@@ -13,12 +13,13 @@ import (
"strconv"
"testing"
"golang.org/x/image/colornames"
"gioui.org/app/headless"
"gioui.org/f32"
"gioui.org/internal/f32color"
"gioui.org/op"
"gioui.org/op/paint"
"golang.org/x/image/colornames"
)
var (
+2 -1
View File
@@ -3,8 +3,9 @@
package text
import (
"gioui.org/op"
"golang.org/x/image/math/fixed"
"gioui.org/op"
)
type layoutCache struct {
+2 -1
View File
@@ -6,8 +6,9 @@ import (
"io"
"strings"
"gioui.org/op"
"golang.org/x/image/math/fixed"
"gioui.org/op"
)
// Shaper implements layout and shaping of text.
+2 -1
View File
@@ -5,8 +5,9 @@ package text
import (
"io"
"gioui.org/op"
"golang.org/x/image/math/fixed"
"gioui.org/op"
)
// A Line contains the measurements of a line of text.
+2 -1
View File
@@ -7,11 +7,12 @@ import (
"image/color"
"image/draw"
"golang.org/x/exp/shiny/iconvg"
"gioui.org/internal/f32color"
"gioui.org/layout"
"gioui.org/op/paint"
"gioui.org/unit"
"golang.org/x/exp/shiny/iconvg"
)
type Icon struct {
+2 -1
View File
@@ -5,10 +5,11 @@ package material
import (
"image/color"
"golang.org/x/exp/shiny/materialdesign/icons"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/widget"
"golang.org/x/exp/shiny/materialdesign/icons"
)
// Palette contains the minimal set of colors that a widget may need to