package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 15, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CheckError(err error)
CheckError is a convenience function to exit if an error is non-nil and exit if it was
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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.