diagnostic

package
v1.88.4-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Type  Type
	Value string
}

Diagnostic contains diagnostic info.

func Error added in v1.67.0

func Error(err any) Diagnostic

Error creates a new instance of Diagnostic of type TypeError.

func Logs

func Logs(logs string) Diagnostic

Logs creates a new instance of Diagnostic of type TypeLogs.

func Stack

func Stack(stack string) Diagnostic

Stack creates a new instance of Diagnostic of type TypeStack.

type Type

type Type int

Type is a type of diagnostic.

const (
	// TypeUnknown designates an unknown type of diagnostic.
	TypeUnknown Type = iota
	// TypeError designates a Diagnostic for error.
	TypeError
	// TypeLogs designates a Diagnostic for logs.
	TypeLogs
	// TypeStack designates a Diagnostic for stack trace.
	TypeStack
)

Jump to

Keyboard shortcuts

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