errors

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError is a convenience function to exit if an error is non-nil and exit if it was

func FailOnErr added in v1.1.0

func FailOnErr(v interface{}, err error) interface{}

panics if there is an error. This returns the first value so you can use it if you cast it: text := FailOrErr(Foo)).(string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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