metaError

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaError

type MetaError struct {
	Meta map[string][]string `json:"meta"`
	// contains filtered or unexported fields
}

func NewMetaError

func NewMetaError(error error, meta map[string][]string) *MetaError

func (MetaError) Error

func (e MetaError) Error() string

func (MetaError) GetMeta

func (e MetaError) GetMeta() map[string][]string

func (MetaError) GetMetaAsString

func (e MetaError) GetMetaAsString() string

GetMetaAsString returns Meta formatted as a string with each key:val on new line Output is alphabetically sorted using key names

func (MetaError) GetMetaKey

func (e MetaError) GetMetaKey(key string) ([]string, bool)

func (MetaError) Print

func (e MetaError) Print()

Jump to

Keyboard shortcuts

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