goblvalidation

package
v1.0.0-beta.186 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(code, message string) validation.Error

NewError creates a new validation error with the given code and message. The validation.NewError returns a struct implementing the validation.Error object, however that is not Comparable by errors.Is (see: https://github.com/golang/go/blob/master/src/errors/wrap.go#L49)

This makes any testcase checking for specific errors useless, but pointers are comparable.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL