diff options
| author | xengineering <me@xengineering.eu> | 2023-04-15 22:32:49 +0200 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2023-04-15 22:32:49 +0200 | 
| commit | a074a9e8e92135f41b64de26df44f287e94aef47 (patch) | |
| tree | 0b62dc8be36432d97d0fe03516a2a6c4287a6631 /go | |
| parent | cc04cf414760732b8c812aab5d3dfa51b8c0816a (diff) | |
| download | limox-a074a9e8e92135f41b64de26df44f287e94aef47.tar limox-a074a9e8e92135f41b64de26df44f287e94aef47.tar.zst limox-a074a9e8e92135f41b64de26df44f287e94aef47.zip | |
Apply go fmt
Diffstat (limited to 'go')
| -rw-r--r-- | go/main.go | 36 | 
1 files changed, 18 insertions, 18 deletions
| @@ -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  } | 
