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" "math"
"unsafe" "unsafe"
"golang.org/x/sys/windows"
"gioui.org/gpu/backend" "gioui.org/gpu/backend"
gunsafe "gioui.org/internal/unsafe" gunsafe "gioui.org/internal/unsafe"
"golang.org/x/sys/windows"
) )
const debug = false const debug = false
+2 -1
View File
@@ -19,6 +19,8 @@ import (
"time" "time"
"unsafe" "unsafe"
syscall "golang.org/x/sys/unix"
"gioui.org/app/internal/xkb" "gioui.org/app/internal/xkb"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/internal/fling" "gioui.org/internal/fling"
@@ -27,7 +29,6 @@ import (
"gioui.org/io/pointer" "gioui.org/io/pointer"
"gioui.org/io/system" "gioui.org/io/system"
"gioui.org/unit" "gioui.org/unit"
syscall "golang.org/x/sys/unix"
) )
// Use wayland-scanner to generate glue code for the xdg-shell and xdg-decoration extensions. // 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/io/system"
"gioui.org/unit" "gioui.org/unit"
"gioui.org/app/internal/xkb"
syscall "golang.org/x/sys/unix" syscall "golang.org/x/sys/unix"
"gioui.org/app/internal/xkb"
) )
type x11Window struct { type x11Window struct {
+3 -2
View File
@@ -11,8 +11,6 @@ import (
"fmt" "fmt"
"sync" "sync"
"gioui.org/font/opentype"
"gioui.org/text"
"golang.org/x/image/font/gofont/gobold" "golang.org/x/image/font/gofont/gobold"
"golang.org/x/image/font/gofont/gobolditalic" "golang.org/x/image/font/gofont/gobolditalic"
"golang.org/x/image/font/gofont/goitalic" "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/goregular"
"golang.org/x/image/font/gofont/gosmallcaps" "golang.org/x/image/font/gofont/gosmallcaps"
"golang.org/x/image/font/gofont/gosmallcapsitalic" "golang.org/x/image/font/gofont/gosmallcapsitalic"
"gioui.org/font/opentype"
"gioui.org/text"
) )
var ( var (
+4 -3
View File
@@ -10,13 +10,14 @@ import (
"unicode" "unicode"
"unicode/utf8" "unicode/utf8"
"golang.org/x/image/font"
"golang.org/x/image/font/sfnt"
"golang.org/x/image/math/fixed"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/op" "gioui.org/op"
"gioui.org/op/clip" "gioui.org/op/clip"
"gioui.org/text" "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 // Font implements text.Face. Its methods are safe to use
+4 -3
View File
@@ -10,13 +10,14 @@ import (
"strings" "strings"
"testing" "testing"
"gioui.org/internal/ops"
"gioui.org/op"
"gioui.org/text"
"golang.org/x/image/font" "golang.org/x/image/font"
"golang.org/x/image/font/gofont/goregular" "golang.org/x/image/font/gofont/goregular"
"golang.org/x/image/font/sfnt" "golang.org/x/image/font/sfnt"
"golang.org/x/image/math/fixed" "golang.org/x/image/math/fixed"
"gioui.org/internal/ops"
"gioui.org/op"
"gioui.org/text"
) )
func TestCollectionAsFace(t *testing.T) { func TestCollectionAsFace(t *testing.T) {
+1 -2
View File
@@ -4,9 +4,8 @@ package d3dcompile
import ( import (
"fmt" "fmt"
"unsafe"
"syscall" "syscall"
"unsafe"
gunsafe "gioui.org/internal/unsafe" gunsafe "gioui.org/internal/unsafe"
+2 -1
View File
@@ -5,11 +5,12 @@ import (
"math" "math"
"testing" "testing"
"golang.org/x/image/colornames"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/op" "gioui.org/op"
"gioui.org/op/clip" "gioui.org/op/clip"
"gioui.org/op/paint" "gioui.org/op/paint"
"golang.org/x/image/colornames"
) )
func TestPaintRect(t *testing.T) { func TestPaintRect(t *testing.T) {
+2 -1
View File
@@ -6,12 +6,13 @@ import (
"math" "math"
"testing" "testing"
"golang.org/x/image/colornames"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/internal/f32color" "gioui.org/internal/f32color"
"gioui.org/op" "gioui.org/op"
"gioui.org/op/clip" "gioui.org/op/clip"
"gioui.org/op/paint" "gioui.org/op/paint"
"golang.org/x/image/colornames"
) )
func TestTransformMacro(t *testing.T) { func TestTransformMacro(t *testing.T) {
+2 -1
View File
@@ -5,11 +5,12 @@ import (
"math" "math"
"testing" "testing"
"golang.org/x/image/colornames"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/op" "gioui.org/op"
"gioui.org/op/clip" "gioui.org/op/clip"
"gioui.org/op/paint" "gioui.org/op/paint"
"golang.org/x/image/colornames"
) )
func TestPaintOffset(t *testing.T) { func TestPaintOffset(t *testing.T) {
+2 -1
View File
@@ -13,12 +13,13 @@ import (
"strconv" "strconv"
"testing" "testing"
"golang.org/x/image/colornames"
"gioui.org/app/headless" "gioui.org/app/headless"
"gioui.org/f32" "gioui.org/f32"
"gioui.org/internal/f32color" "gioui.org/internal/f32color"
"gioui.org/op" "gioui.org/op"
"gioui.org/op/paint" "gioui.org/op/paint"
"golang.org/x/image/colornames"
) )
var ( var (
+2 -1
View File
@@ -3,8 +3,9 @@
package text package text
import ( import (
"gioui.org/op"
"golang.org/x/image/math/fixed" "golang.org/x/image/math/fixed"
"gioui.org/op"
) )
type layoutCache struct { type layoutCache struct {
+2 -1
View File
@@ -6,8 +6,9 @@ import (
"io" "io"
"strings" "strings"
"gioui.org/op"
"golang.org/x/image/math/fixed" "golang.org/x/image/math/fixed"
"gioui.org/op"
) )
// Shaper implements layout and shaping of text. // Shaper implements layout and shaping of text.
+2 -1
View File
@@ -5,8 +5,9 @@ package text
import ( import (
"io" "io"
"gioui.org/op"
"golang.org/x/image/math/fixed" "golang.org/x/image/math/fixed"
"gioui.org/op"
) )
// A Line contains the measurements of a line of text. // A Line contains the measurements of a line of text.
+2 -1
View File
@@ -7,11 +7,12 @@ import (
"image/color" "image/color"
"image/draw" "image/draw"
"golang.org/x/exp/shiny/iconvg"
"gioui.org/internal/f32color" "gioui.org/internal/f32color"
"gioui.org/layout" "gioui.org/layout"
"gioui.org/op/paint" "gioui.org/op/paint"
"gioui.org/unit" "gioui.org/unit"
"golang.org/x/exp/shiny/iconvg"
) )
type Icon struct { type Icon struct {
+2 -1
View File
@@ -5,10 +5,11 @@ package material
import ( import (
"image/color" "image/color"
"golang.org/x/exp/shiny/materialdesign/icons"
"gioui.org/text" "gioui.org/text"
"gioui.org/unit" "gioui.org/unit"
"gioui.org/widget" "gioui.org/widget"
"golang.org/x/exp/shiny/materialdesign/icons"
) )
// Palette contains the minimal set of colors that a widget may need to // Palette contains the minimal set of colors that a widget may need to