Moved error types to their respective packages
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Eduard Urbach 2025-06-20 12:46:53 +02:00
parent 735246bd38
commit 6dfa7ca00d
Signed by: ed
GPG key ID: 49226B848C78F6C8
19 changed files with 134 additions and 118 deletions

View file

@ -1,11 +1,6 @@
package errors
// String is used for static errors that have no parameters.
type String struct {
Message string
}
// Error implements the error interface.
func (err *String) Error() string {
return err.Message
// String creates a static error message without parameters.
func String(message string) *static {
return &static{Message: message}
}