Ran gofmt

This commit is contained in:
David Alasow 2017-12-22 23:13:31 +01:00
parent 003fb15ecf
commit 291aff7aea

View File

@ -1,20 +1,20 @@
package main package main
import ( import (
_ "image/jpeg"
"fmt" "fmt"
"github.com/golang/freetype/truetype"
"golang.org/x/image/font"
"image/color" "image/color"
_ "image/jpeg"
"io/ioutil" "io/ioutil"
"log" "log"
"strings" "strings"
"github.com/golang/freetype/truetype"
"golang.org/x/image/font"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil"
"github.com/hajimehoshi/ebiten/text"
"github.com/hajimehoshi/ebiten/audio" "github.com/hajimehoshi/ebiten/audio"
"github.com/hajimehoshi/ebiten/audio/mp3" "github.com/hajimehoshi/ebiten/audio/mp3"
"github.com/hajimehoshi/ebiten/ebitenutil"
"github.com/hajimehoshi/ebiten/text"
) )
const ( const (
@ -106,7 +106,6 @@ func init() {
} }
} }
func update(screen *ebiten.Image) error { func update(screen *ebiten.Image) error {
if ebiten.IsRunningSlowly() { if ebiten.IsRunningSlowly() {
@ -121,7 +120,7 @@ func update(screen *ebiten.Image) error {
} }
} }
action = strings.Split(messages[line].Text, " ") action = strings.Split(messages[line].Text, " ")
if (action[0] == "playSong") { if action[0] == "playSong" {
if line+1 != len(messages) { if line+1 != len(messages) {
playSong(action[1]) playSong(action[1])
line++ line++