Documentation ¶
Index ¶
- Variables
- func Is[T any](t1 any) bool
- func Length(s string) int
- func NotNull[T any](ns ...Nullable[T])
- func ToCharArray(s string) []char
- func ToRunes(cs []char) []rune
- func ToString(cs []char) string
- func TypeOf[T any]() reflect.Type
- type ICloneable
- type INullable
- type Just
- type Maybe
- type MultiType2
- type MultiType3
- func (m *MultiType3[T1, T2, T3]) Get() any
- func (m *MultiType3[T1, T2, T3]) GetT1() T1
- func (m *MultiType3[T1, T2, T3]) GetT2() T2
- func (m *MultiType3[T1, T2, T3]) GetT3() T3
- func (m *MultiType3[T1, T2, T3]) IsT1() bool
- func (m *MultiType3[T1, T2, T3]) IsT2() bool
- func (m *MultiType3[T1, T2, T3]) IsT3() bool
- func (m *MultiType3[T1, T2, T3]) SetT1(t T1)
- func (m *MultiType3[T1, T2, T3]) SetT2(t T2)
- func (m *MultiType3[T1, T2, T3]) SetT3(t T3)
- type Nothing
- type Nullable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNullValue = errors.New("value is null")
Functions ¶
func ToCharArray ¶
func ToCharArray(s string) []char
Types ¶
type ICloneable ¶
type ICloneable[T any] interface { Clone() T }
type MultiType2 ¶
type MultiType2[T1, T2 any] struct { // contains filtered or unexported fields }
func NewMultiType2WithT1 ¶
func NewMultiType2WithT1[T1, T2 any](obj T1) *MultiType2[T1, T2]
func NewMultiType2WithT2 ¶
func NewMultiType2WithT2[T1, T2 any](obj T2) *MultiType2[T1, T2]
func (*MultiType2[T1, T2]) Get ¶
func (m *MultiType2[T1, T2]) Get() any
func (*MultiType2[T1, T2]) GetT1 ¶
func (m *MultiType2[T1, T2]) GetT1() T1
func (*MultiType2[T1, T2]) GetT2 ¶
func (m *MultiType2[T1, T2]) GetT2() T2
func (*MultiType2[T1, T2]) IsT1 ¶
func (m *MultiType2[T1, T2]) IsT1() bool
func (*MultiType2[T1, T2]) IsT2 ¶
func (m *MultiType2[T1, T2]) IsT2() bool
func (*MultiType2[T1, T2]) SetT1 ¶
func (m *MultiType2[T1, T2]) SetT1(t T1)
func (*MultiType2[T1, T2]) SetT2 ¶
func (m *MultiType2[T1, T2]) SetT2(t T2)
type MultiType3 ¶
type MultiType3[T1, T2, T3 any] struct { // contains filtered or unexported fields }
func NewMultiType3WithT1 ¶
func NewMultiType3WithT1[T1, T2, T3 any](obj T1) *MultiType3[T1, T2, T3]
func NewMultiType3WithT2 ¶
func NewMultiType3WithT2[T1, T2, T3 any](obj T2) *MultiType3[T1, T2, T3]
func NewMultiType3WithT3 ¶
func NewMultiType3WithT3[T1, T2, T3 any](obj T3) *MultiType3[T1, T2, T3]
func (*MultiType3[T1, T2, T3]) Get ¶
func (m *MultiType3[T1, T2, T3]) Get() any
func (*MultiType3[T1, T2, T3]) GetT1 ¶
func (m *MultiType3[T1, T2, T3]) GetT1() T1
func (*MultiType3[T1, T2, T3]) GetT2 ¶
func (m *MultiType3[T1, T2, T3]) GetT2() T2
func (*MultiType3[T1, T2, T3]) GetT3 ¶
func (m *MultiType3[T1, T2, T3]) GetT3() T3
func (*MultiType3[T1, T2, T3]) IsT1 ¶
func (m *MultiType3[T1, T2, T3]) IsT1() bool
func (*MultiType3[T1, T2, T3]) IsT2 ¶
func (m *MultiType3[T1, T2, T3]) IsT2() bool
func (*MultiType3[T1, T2, T3]) IsT3 ¶
func (m *MultiType3[T1, T2, T3]) IsT3() bool
func (*MultiType3[T1, T2, T3]) SetT1 ¶
func (m *MultiType3[T1, T2, T3]) SetT1(t T1)
func (*MultiType3[T1, T2, T3]) SetT2 ¶
func (m *MultiType3[T1, T2, T3]) SetT2(t T2)
func (*MultiType3[T1, T2, T3]) SetT3 ¶
func (m *MultiType3[T1, T2, T3]) SetT3(t T3)
type Nullable ¶
type Nullable[T any] struct { // contains filtered or unexported fields }
func NewNotNull ¶
func (*Nullable[T]) MarshalJSON ¶
func (*Nullable[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.