maybe

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Just

func Just[T any](maybe Maybe[T]) T

func Valid

func Valid[T any](maybe Maybe[T]) bool

Types

type Maybe

type Maybe[T any] struct {
	// contains filtered or unexported fields
}

func NewJust

func NewJust[T any](v T) Maybe[T]

func NewNone

func NewNone[T any]() Maybe[T]

NewNone used for explicit none value

Jump to

Keyboard shortcuts

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