option

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

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

func FloatNone

func FloatNone() Float

func FloatValue

func FloatValue(str float64) Float

func (Float) Chan

func (float Float) Chan() <-chan float64

func (Float) Empty

func (float Float) Empty() bool

func (Float) Float

func (float Float) Float() float64

func (Float) FloatDefault

func (float Float) FloatDefault(defaultFloat float64) float64

func (Float) Map

func (float Float) Map(op func(float64) float64) Float

func (Float) MarshalJSON

func (float Float) MarshalJSON() ([]byte, error)

func (Float) MarshalText added in v0.0.2

func (float Float) MarshalText() ([]byte, error)

func (Float) Ptr

func (float Float) Ptr() *float64

func (Float) PutIfEmpty

func (float Float) PutIfEmpty(value float64) Float

func (Float) Slice

func (float Float) Slice() []float64

func (Float) String added in v0.0.3

func (float Float) String() string

func (*Float) UnmarshalJSON

func (float *Float) UnmarshalJSON(p []byte) error

func (*Float) UnmarshalText added in v0.0.2

func (float *Float) UnmarshalText(p []byte) error

type Int

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

func IntNone

func IntNone() Int

func IntValue

func IntValue(i int) Int

func (Int) Chan

func (i Int) Chan() <-chan int

func (Int) Empty

func (i Int) Empty() bool

func (Int) Int

func (i Int) Int() int

func (Int) IntDefault

func (i Int) IntDefault(defaultInt int) int

func (Int) Map

func (i Int) Map(op func(int) int) Int

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

func (Int) MarshalText added in v0.0.2

func (i Int) MarshalText() ([]byte, error)

func (Int) Ptr

func (i Int) Ptr() *int

func (Int) PutIfEmpty

func (i Int) PutIfEmpty(value int) Int

func (Int) Slice

func (i Int) Slice() []int

func (Int) String added in v0.0.3

func (i Int) String() string

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(p []byte) error

func (*Int) UnmarshalText added in v0.0.2

func (i *Int) UnmarshalText(p []byte) error

type String

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

func StrNone

func StrNone() String

func StrValue

func StrValue(str string) String

func (String) Chan

func (str String) Chan() <-chan string

func (String) Empty

func (str String) Empty() bool

func (String) Map

func (str String) Map(op func(string) string) String

func (String) MarshalJSON

func (str String) MarshalJSON() ([]byte, error)

func (String) MarshalText added in v0.0.2

func (str String) MarshalText() ([]byte, error)

func (String) Ptr

func (str String) Ptr() *string

func (String) PutIfEmpty

func (str String) PutIfEmpty(value string) String

func (String) Slice

func (str String) Slice() []string

func (String) String

func (str String) String() string

func (String) StringDefault

func (str String) StringDefault(defaultString string) string

func (*String) UnmarshalJSON

func (str *String) UnmarshalJSON(p []byte) error

func (*String) UnmarshalText added in v0.0.2

func (str *String) UnmarshalText(p []byte) error

type Time added in v0.0.2

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

func TimeNone added in v0.0.2

func TimeNone() Time

func TimeValue added in v0.0.2

func TimeValue(t time.Time) Time

func (Time) Chan added in v0.0.2

func (t Time) Chan() <-chan time.Time

func (Time) Empty added in v0.0.2

func (t Time) Empty() bool

func (Time) Map added in v0.0.2

func (t Time) Map(op func(time.Time) time.Time) Time

func (Time) MarshalJSON added in v0.0.2

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText added in v0.0.2

func (t Time) MarshalText() ([]byte, error)

func (Time) Ptr added in v0.0.2

func (t Time) Ptr() *time.Time

func (Time) PutIfEmpty added in v0.0.2

func (t Time) PutIfEmpty(value time.Time) Time

func (Time) Slice added in v0.0.2

func (t Time) Slice() []time.Time

func (Time) String added in v0.0.3

func (t Time) String() string

func (Time) Time added in v0.0.2

func (t Time) Time() time.Time

func (Time) TimeDefault added in v0.0.2

func (t Time) TimeDefault(defaultTime time.Time) time.Time

func (*Time) UnmarshalJSON added in v0.0.2

func (t *Time) UnmarshalJSON(p []byte) error

func (*Time) UnmarshalText added in v0.0.2

func (t *Time) UnmarshalText(p []byte) error

Jump to

Keyboard shortcuts

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