haixunMaster/haixun-backend/internal/library/prompt/errors.go

16 lines
248 B
Go

package prompt
import "fmt"
type unknownKeyError struct {
key string
}
func ErrUnknownKey(key string) error {
return unknownKeyError{key: key}
}
func (e unknownKeyError) Error() string {
return fmt.Sprintf("unknown prompt key: %s", e.key)
}