summaryrefslogtreecommitdiff
path: root/go/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-15 22:32:49 +0200
committerxengineering <me@xengineering.eu>2023-04-15 22:32:49 +0200
commita074a9e8e92135f41b64de26df44f287e94aef47 (patch)
tree0b62dc8be36432d97d0fe03516a2a6c4287a6631 /go/main.go
parentcc04cf414760732b8c812aab5d3dfa51b8c0816a (diff)
downloadlimox-a074a9e8e92135f41b64de26df44f287e94aef47.tar
limox-a074a9e8e92135f41b64de26df44f287e94aef47.tar.zst
limox-a074a9e8e92135f41b64de26df44f287e94aef47.zip
Apply go fmt
Diffstat (limited to 'go/main.go')
-rw-r--r--go/main.go36
1 files changed, 18 insertions, 18 deletions
diff --git a/go/main.go b/go/main.go
index f7e7ee9..18f2105 100644
--- a/go/main.go
+++ b/go/main.go
@@ -25,13 +25,13 @@ const (
)
type Limox struct {
- JidEditor widget.Editor
- PwdEditor widget.Editor
- MainButton widget.Clickable
- State LimoxState
- Window *app.Window
- Operations op.Ops
- Theme *material.Theme
+ JidEditor widget.Editor
+ PwdEditor widget.Editor
+ MainButton widget.Clickable
+ State LimoxState
+ Window *app.Window
+ Operations op.Ops
+ Theme *material.Theme
}
func main() {
@@ -54,9 +54,9 @@ func NewLimox() Limox {
app.Title("LimoX"),
app.Size(unit.Dp(400), unit.Dp(600)),
),
- Operations: op.Ops{},
- Theme: material.NewTheme(gofont.Collection()),
- State: Disconnected,
+ Operations: op.Ops{},
+ Theme: material.NewTheme(gofont.Collection()),
+ State: Disconnected,
}
}
@@ -136,14 +136,14 @@ func (l *Limox) draw(e system.FrameEvent) {
func (l *Limox) buttonLabel() string {
var label string
switch l.State {
- case Disconnected:
- label = "Connect"
- case Connecting:
- label = "Abort"
- case Connected:
- label = "Disconnect"
- default:
- log.Fatalf("Unknown Limox state '%d'\n", l.State)
+ case Disconnected:
+ label = "Connect"
+ case Connecting:
+ label = "Abort"
+ case Connected:
+ label = "Disconnect"
+ default:
+ log.Fatalf("Unknown Limox state '%d'\n", l.State)
}
return label
}