Reorganized file structure

This commit is contained in:
Eduard Urbach 2024-06-10 15:51:39 +02:00
parent 8b595ef3ce
commit 722d07c321
Signed by: eduard
GPG key ID: 49226B848C78F6C8
57 changed files with 431 additions and 614 deletions

View file

@ -1,17 +0,0 @@
package errors
import "fmt"
// InvalidDirectory errors are returned when the specified path is not a directory.
type InvalidDirectory struct {
Path string
}
// Error implements the text representation.
func (err *InvalidDirectory) Error() string {
if err.Path == "" {
return "Invalid directory"
}
return fmt.Sprintf("Invalid directory '%s'", err.Path)
}

View file

@ -1,14 +0,0 @@
package errors
import "fmt"
// RegisterInUse errors are returned when a register is already in use.
type RegisterInUse struct {
Register string
User string
}
// Error implements the text representation.
func (err *RegisterInUse) Error() string {
return fmt.Sprintf("Register '%s' already used by '%s'", err.Register, err.User)
}