err

package
v0.0.0-...-a1b16c7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(err error)

检查是否存在错误,如果有则抛出异常 2021.2.16 改名字为Assert更符合实际行为 catch 例子:

   defer func() {
       if err := recover(); err != nil {
	  	  }
   }()

func Exit

func Exit(desc string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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