errorspresenter

package
v0.0.6-rc4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package errorspresenter provides types to present validation errors in any formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PresentErrorAsOnePathError

func PresentErrorAsOnePathError(errs errors.Errors) error

PresentErrorAsOnePathError present error as path of error in fields and error.

func PresentErrorsAsSimpleOneError

func PresentErrorsAsSimpleOneError(errs errors.Errors) error

PresentErrorsAsSimpleOneError find error in errors.Errors, where error is not a errors.Errors, errors.ErrorSlice.

Types

type Presenter

type Presenter interface {
	Present(errors errors.Errors) error
}

Presenter ...

type PresenterFunc

type PresenterFunc func(errors errors.Errors) error

PresenterFunc ...

func (PresenterFunc) Present

func (f PresenterFunc) Present(errors errors.Errors) error

Present ...

Jump to

Keyboard shortcuts

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