rerror

package module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EIs added in v1.2.0

func EIs(err error, kargs ...string) bool

func RIs added in v1.2.0

func RIs(err *Error, kargs ...string) bool

Types

type Error

type Error struct {
	UUID    string `json:"uuid"`
	Status  int    `json:"status"`
	Message string `json:"message"`
	Tag     string `json:"tag"`
}

func ErrorF

func ErrorF(print bool, status int, tag, format string, args ...any) *Error

type Log

type Log struct {
	Timestamp string `json:"timestamp"`
	Severity  string `json:"severity"`
	Path      string `json:"path"`
	Line      int    `json:"line"`
	Error
}

func LogF

func LogF(print bool, status int, tag, format string, args ...any) *Log

Jump to

Keyboard shortcuts

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