Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Must ¶
Must panics if the second argument is a non-nil error.
Save you from having to type out something like:
if a, err := someFunction(); err != nil { panic(err) }
Which can be replaced with:
import . "github.com/nguyengg/golambda/must" a := Must(someFunction())
func Must0 ¶
func Must0(err error)
Must0 panics if the single argument is a non-nil error.
Save you from having to type out something like:
if err := someFunction(); err != nil { panic(err) }
Which can be replaced with:
import . "github.com/nguyengg/golambda/must" Must0(someFunction())
func Must2 ¶
Must2 panics if the last argument is a non-nil error.
Save you from having to type out something like:
if a, b, err := someFunction(); err != nil { panic(err) }
Which can be replaced with:
import . "github.com/nguyengg/golambda/must" a, b := Must2(someFunction())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.