Add MPD client implementation

This commit is contained in:
Olli 2026-02-26 10:38:04 +01:00
commit 4a11ea5ad0
4 changed files with 1212 additions and 0 deletions

19
internal/client/errors.go Normal file
View file

@ -0,0 +1,19 @@
package client
import "fmt"
type ValueParseErr struct {
field string
value string
}
func newValueParseError(field string, value string) ValueParseErr {
return ValueParseErr{
field: field,
value: value,
}
}
func (e ValueParseErr) Error() string {
return fmt.Sprintf("failed to parse %s value: %s", e.field, e.value)
}