format: improve variable declaration style
- change variable declarations to use a grouped format
🤖
This commit is contained in:
parent
912dfa62f2
commit
f26f12ef98
3 changed files with 10 additions and 5 deletions
|
@ -14,6 +14,7 @@ import (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
config ChronoTomato.Config
|
config ChronoTomato.Config
|
||||||
|
|
||||||
parameter_url = flag.String("url", "", "GoTomato Server URL (eg ws://localhost:8080/ws)")
|
parameter_url = flag.String("url", "", "GoTomato Server URL (eg ws://localhost:8080/ws)")
|
||||||
parameter_password = flag.String("password", "", "Control password for pomodoro session")
|
parameter_password = flag.String("password", "", "Control password for pomodoro session")
|
||||||
configfile = flag.String("config", "", "Path to config file")
|
configfile = flag.String("config", "", "Path to config file")
|
||||||
|
|
|
@ -8,8 +8,10 @@ import (
|
||||||
|
|
||||||
func desktopNotifications(pomodoro GoTomato.ServerMessage) {
|
func desktopNotifications(pomodoro GoTomato.ServerMessage) {
|
||||||
|
|
||||||
var duration int
|
var (
|
||||||
var notification string
|
duration int
|
||||||
|
notification string
|
||||||
|
)
|
||||||
|
|
||||||
mode := pomodoro.Mode
|
mode := pomodoro.Mode
|
||||||
session := pomodoro.Session
|
session := pomodoro.Session
|
||||||
|
|
|
@ -8,8 +8,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func terminalOutput(pomodoro GoTomato.ServerMessage) {
|
func terminalOutput(pomodoro GoTomato.ServerMessage) {
|
||||||
var modePrefix string
|
var (
|
||||||
var timerOutput string
|
modePrefix string
|
||||||
|
timerOutput string
|
||||||
|
)
|
||||||
|
|
||||||
fmt.Print("\033[H\033[2J") // Clears the screen
|
fmt.Print("\033[H\033[2J") // Clears the screen
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue