go4.org: go4.org/must Index | Files

package must

import "go4.org/must"

Package must contains helpers that panic on failure.

Index

Package Files

must.go

func Close Uses

func Close(c io.Closer)

Close calls c.Close and panics if it returns an error. The panic value is the return value from Close.

func Do Uses

func Do(fn func() error)

Do runs fn and panics if it returns an error. The panic value is the return value from fn.

Package must imports 1 packages (graph). Updated 2019-09-20. Refresh now. Tools for package owners.