Just let goimports handle the import sorting.

main
Sean Hickey 2021-11-22 14:10:35 -08:00
parent 897ea4222c
commit 4343af651f
7 changed files with 10 additions and 17 deletions

View File

@ -7,13 +7,12 @@ import (
"runtime"
"runtime/pprof"
gl "github.com/go-gl/gl/v3.1/gles2"
"github.com/go-gl/mathgl/mgl32"
"github.com/veandco/go-sdl2/sdl"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/breakout"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/game_window"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
gl "github.com/go-gl/gl/v3.1/gles2"
"github.com/go-gl/mathgl/mgl32"
"github.com/veandco/go-sdl2/sdl"
)
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")

View File

@ -1,9 +1,8 @@
package breakout
import (
"github.com/go-gl/mathgl/mgl32"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
"github.com/go-gl/mathgl/mgl32"
)
type BoundingBox struct {

View File

@ -1,9 +1,8 @@
package breakout
import (
"github.com/go-gl/mathgl/mgl32"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
"github.com/go-gl/mathgl/mgl32"
)
type Brick struct {

View File

@ -1,9 +1,8 @@
package breakout
import (
"github.com/go-gl/mathgl/mgl32"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
"github.com/go-gl/mathgl/mgl32"
)
type Targets struct {

View File

@ -4,12 +4,11 @@ import (
"fmt"
"log"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_helpers"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
gl "github.com/go-gl/gl/v3.1/gles2"
"github.com/go-gl/mathgl/mgl32"
"github.com/veandco/go-sdl2/sdl"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_helpers"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_objects"
)
const DefaultWindowWidth int32 = 800

View File

@ -1,9 +1,8 @@
package gl_objects
import (
"github.com/go-gl/mathgl/mgl32"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_helpers"
"github.com/go-gl/mathgl/mgl32"
)
type Material struct {

View File

@ -1,9 +1,8 @@
package gl_objects
import (
"github.com/go-gl/mathgl/mgl32"
"gitea.wisellama.rocks/Wisellama/carpy-breakout/pkg/gl_helpers"
"github.com/go-gl/mathgl/mgl32"
)
// Point Light