values

package
v0.0.0-...-1c9a7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals[T schnittstellen.Equatable[T]](a T, b any) bool

func EqualsPtr

func EqualsPtr[T schnittstellen.Equatable[T], TPtr schnittstellen.Ptr[T]](
	a T,
	b any,
) bool

Types

type Bool

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

func MakeBool

func MakeBool(v bool) Bool

func (Bool) Bool

func (sv Bool) Bool() bool

func (Bool) Equals

func (a Bool) Equals(b Bool) bool

func (*Bool) Reset

func (a *Bool) Reset()

func (*Bool) ResetWith

func (a *Bool) ResetWith(b Bool)

func (*Bool) Set

func (sv *Bool) Set(v string) (err error)

func (*Bool) SetBool

func (sv *Bool) SetBool(v bool)

func (Bool) String

func (sv Bool) String() string

func (Bool) WasSet

func (a Bool) WasSet() bool

type Int

type Int int

func MakeInt

func MakeInt(i int) *Int

func (Int) Equals

func (a Int) Equals(b Int) (ok bool)

func (Int) Int

func (iv Int) Int() int

func (Int) Less

func (a Int) Less(b Int) (ok bool)

func (*Int) Reset

func (iv *Int) Reset()

func (*Int) ResetWith

func (iv *Int) ResetWith(b Int)

func (*Int) Set

func (iv *Int) Set(v string) (err error)

func (*Int) SetInt

func (iv *Int) SetInt(i int)

func (Int) String

func (iv Int) String() string

type IntEqualer

type IntEqualer struct{}

func (IntEqualer) Equals

func (_ IntEqualer) Equals(a, b Int) bool

func (IntEqualer) EqualsPtr

func (_ IntEqualer) EqualsPtr(a, b *Int) bool

type IntLessor

type IntLessor struct{}

func (IntLessor) Less

func (_ IntLessor) Less(a, b Int) bool

func (IntLessor) LessPtr

func (_ IntLessor) LessPtr(a, b *Int) bool

type IntResetter

type IntResetter struct{}

func (IntResetter) Reset

func (_ IntResetter) Reset(a *Int)

func (IntResetter) ResetWith

func (_ IntResetter) ResetWith(a *Int, b Int)

func (IntResetter) ResetWithPtr

func (_ IntResetter) ResetWithPtr(a *Int, b *Int)

type ReverseLessor

type ReverseLessor[T any, TPtr schnittstellen.Ptr[T]] struct {
	Inner schnittstellen.Lessor2[T, TPtr]
}

func (ReverseLessor[T, TPtr]) Less

func (rl ReverseLessor[T, TPtr]) Less(a T, b T) bool

func (ReverseLessor[T, TPtr]) LessPtr

func (rl ReverseLessor[T, TPtr]) LessPtr(a TPtr, b TPtr) bool

type String

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

func MakeString

func MakeString(v string) String

func (String) IsEmpty

func (sv String) IsEmpty() bool

func (String) Len

func (sv String) Len() int

func (String) Less

func (a String) Less(b String) bool

func (String) MarshalBinary

func (s String) MarshalBinary() (text []byte, err error)

func (String) Match

func (sv String) Match(v string) (err error)

func (*String) Reset

func (a *String) Reset()

func (*String) ResetWith

func (a *String) ResetWith(b String)

func (*String) Set

func (sv *String) Set(v string) (err error)

func (String) String

func (sv String) String() string

func (*String) UnmarshalBinary

func (s *String) UnmarshalBinary(text []byte) (err error)

func (String) WasSet

func (a String) WasSet() bool

type Uri

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

func (Uri) MarshalBinary

func (u Uri) MarshalBinary() (text []byte, err error)

func (Uri) MarshalText

func (u Uri) MarshalText() (text []byte, err error)

func (*Uri) Set

func (u *Uri) Set(v string) (err error)

func (*Uri) String

func (u *Uri) String() string

func (*Uri) UnmarshalBinary

func (u *Uri) UnmarshalBinary(text []byte) (err error)

func (*Uri) UnmarshalText

func (u *Uri) UnmarshalText(text []byte) (err error)

Jump to

Keyboard shortcuts

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