Reformat with gofmt
This commit is contained in:
parent
66695e069b
commit
72916575bd
8
Main.go
8
Main.go
|
@ -3,11 +3,10 @@ package main
|
|||
import (
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
"strconv"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
|
||||
"github.com/gdamore/tcell/v2"
|
||||
)
|
||||
|
||||
|
@ -64,7 +63,7 @@ func centeredText(s string, x, y, width int, scr tcell.Screen, style tcell.Style
|
|||
i := 0
|
||||
for _, char := range s {
|
||||
if i >= width {
|
||||
break;
|
||||
break
|
||||
}
|
||||
|
||||
scr.SetContent(start+i, y, char, nil, style)
|
||||
|
@ -79,7 +78,7 @@ func wrappedText(s string, scr tcell.Screen, style tcell.Style) {
|
|||
for _, char := range s {
|
||||
if x >= w {
|
||||
if y >= h {
|
||||
break;
|
||||
break
|
||||
}
|
||||
x = 0
|
||||
y++
|
||||
|
@ -160,7 +159,6 @@ func main() {
|
|||
wall.Clear()
|
||||
drawWall()
|
||||
|
||||
|
||||
quit := func() {
|
||||
wall.Fini()
|
||||
os.Exit(0)
|
||||
|
|
Loading…
Reference in a new issue