Documentation ¶
Index ¶
- func Die(err error)
- func Ignore(error)
- type ErrorHandler
- type Option
- func (o Option) Catch(e ErrorHandler) interface{}
- func (o Option) Close() Option
- func (o Option) JSON(i interface{}) Option
- func (o Option) Or(i interface{}) interface{}
- func (o Option) Read() Option
- func (o Option) Slurp() Option
- func (o Option) ToString() Option
- func (o Option) Unwrap() interface{}
- func (o Option) UnwrapBytes() []byte
- func (o Option) UnwrapString() string
- func (o Option) Write(w io.Writer) Option
- func (o Option) WriteString(w io.StringWriter) Option
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorHandler ¶
type ErrorHandler func(err error)
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func Slurp ¶
func Slurp(r io.ReadCloser) Option
func (Option) Catch ¶
func (o Option) Catch(e ErrorHandler) interface{}
func (Option) UnwrapBytes ¶ added in v0.1.1
func (Option) UnwrapString ¶ added in v0.2.0
func (Option) WriteString ¶ added in v0.2.0
func (o Option) WriteString(w io.StringWriter) Option
Click to show internal directories.
Click to hide internal directories.