format: update import statements

- clean up and streamline import statements across multiple files

🤖
This commit is contained in:
Sebastian Mark 2024-10-27 21:34:53 +01:00
parent f26f12ef98
commit e8b463c59c
8 changed files with 16 additions and 10 deletions

View file

@ -2,8 +2,9 @@ package frontend
import (
"fmt"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
"github.com/gen2brain/beeep"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
func desktopNotifications(pomodoro GoTomato.ServerMessage) {

View file

@ -3,10 +3,12 @@ package frontend
import (
"atomicgo.dev/keyboard"
"atomicgo.dev/keyboard/keys"
ws "github.com/gorilla/websocket"
"git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
ws "github.com/gorilla/websocket"
)
func keyhandler(conn *ws.Conn, config ChronoTomato.Config, message *GoTomato.ServerMessage, quit chan bool) {

View file

@ -1,9 +1,10 @@
package frontend
import (
"github.com/gorilla/websocket"
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
"github.com/gorilla/websocket"
)
var message GoTomato.ServerMessage

View file

@ -2,9 +2,10 @@ package frontend
import (
"fmt"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
"github.com/fatih/color"
"strings"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
func terminalOutput(pomodoro GoTomato.ServerMessage) {

View file

@ -1,12 +1,13 @@
package helper
import (
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
"github.com/charmbracelet/log"
"gopkg.in/yaml.v3"
"os"
"path/filepath"
"strings"
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
)
func ParseConfig(filename string) ChronoTomato.Config {

View file

@ -3,9 +3,10 @@ package websocket
import (
"encoding/json"
"fmt"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
"github.com/charmbracelet/log"
"github.com/gorilla/websocket"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
var Done = make(chan struct{})

View file

@ -2,9 +2,10 @@ package websocket
import (
"encoding/json"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
"github.com/charmbracelet/log"
"github.com/gorilla/websocket"
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
func sendClientCommand(conn *websocket.Conn, msg GoTomato.ClientCommand) {

View file

@ -1,8 +1,6 @@
package models
import (
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
import GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
type Config struct {
URL string `yaml:"url"`