cerrors

package
v0.0.0-...-f990510 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors struct {
	ErrorLog map[string][]string
}

func NewErrors

func NewErrors() *Errors

func (*Errors) Add

func (e *Errors) Add(key, value string)
	Add looks ip a key on the Error Log, and appends the value
 If the key doesn't exist, it creates it automatically

func (*Errors) Get

func (e *Errors) Get(key string) []string

Get looks up the error by key, and returns a slice of string

func (*Errors) IsValid

func (e *Errors) IsValid() bool

IsValid checks the length of ErrorLog and returns true if there are no errors, indicating that everything is valid, and there are no errors

Jump to

Keyboard shortcuts

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