v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Die

func Die(err error)

func Ignore

func Ignore(error)

Types

type ErrorHandler

type ErrorHandler func(err error)

type Option

type Option struct {
	// contains filtered or unexported fields
}

func Slurp

func Slurp(r io.Reader) Option

func (Option) Catch

func (o Option) Catch(e ErrorHandler) interface{}

func (Option) Or

func (o Option) Or(i interface{}) interface{}

func (Option) Unwrap

func (o Option) Unwrap() interface{}

type Producer

type Producer func(o Option) interface{}

Jump to

Keyboard shortcuts

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