Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNoValue = errors.New("cannot get value from failure Maybe")
Functions ¶
This section is empty.
Types ¶
type Failure ¶
type Failure[A any] struct { // contains filtered or unexported fields }
func NewFailure ¶
type Success ¶
type Success[A any] struct { // contains filtered or unexported fields }
func NewSuccess ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer wraps an io.Writer with the Maybe pattern to allow for fewer error checks when writing many strings in a row.
func (*Writer) WriteString ¶
Click to show internal directories.
Click to hide internal directories.