errors

package
v0.0.0-...-d506493 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

包 errors 为内部使用提供处理错误的功能。 md5:5ebd576fdf2856b2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStackModeBrief

func IsStackModeBrief() bool

IsStackModeBrief 返回当前错误堆栈模式是否为简洁模式。 md5:5cccc95d12155d45

Types

type StackMode

type StackMode string

StackMode是在StackModeBrief或StackModeDetail模式下打印堆栈信息的模式。 md5:2ad08dc7990f413c

const (
	// StackModeBrief 指定只打印所有错误堆栈,不打印框架错误堆栈。 md5:b592fb9cad302a5a
	StackModeBrief StackMode = "brief"

	// StackModeDetail 指定打印详细错误堆栈,包括框架堆栈。 md5:fab5a35426363d26
	StackModeDetail StackMode = "detail"
)

Jump to

Keyboard shortcuts

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