renovate the code, update to go 1.26 and satisfy linter (#3)

This commit is contained in:
T. von Dein
2026-08-22 17:59:59 +02:00
parent 9cd6e4a6b9
commit 6d9763a0a9
77 changed files with 681 additions and 227 deletions

View File

@@ -5,7 +5,7 @@ import (
"fmt"
)
// Information about a seat containing input devices
// Seat stores information about a seat containing input devices
type Seat struct {
Name string `json:"name"`
Capabilities int `json:"capabilities"`
@@ -13,9 +13,9 @@ type Seat struct {
Devices []*Input `json:"devices"`
}
// Get input seats
// GetSeats returns input seats
func (ipc *SwayIPC) GetSeats() ([]*Seat, error) {
payload, err := ipc.get(GET_SEATS)
payload, err := ipc.get(MsgGetSeats)
if err != nil {
return nil, err
}