Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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

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