errorspresenter

package
v0.0.6-rc2 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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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