envoid/internal/errors/key_not_found.go
Sagi Dayan 22bb2adcaf
Some checks failed
CI / check for spelling errors (pull_request) Successful in 20s
CI / code quality (lint/tests) (pull_request) Failing after 24s
CI / make sure build does not fail (pull_request) Has been skipped
CI / notify-fail (pull_request) Successful in 14s
Added lint to the CI. formatted all code accordingly
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-17 13:06:41 +02:00

13 lines
237 B
Go

package errors
type NoKeyFoundError struct {
key string
}
func (e *NoKeyFoundError) Error() string {
return "key " + e.key + " not found"
}
func NewNoKeyFoundError(key string) *NoKeyFoundError {
return &NoKeyFoundError{key: key}
}