optional

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

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

func None

func None() Value

None值

func Some

func Some(v interface{}) Value

Value值

func (Value) IsNone

func (o Value) IsNone() bool

是否为None

func (Value) IsValue

func (o Value) IsValue() bool

是否为Value

func (Value) Value

func (o Value) Value() interface{}

获得Value

Jump to

Keyboard shortcuts

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