Documentation
¶
Index ¶
- type Bool
- type Char
- type Comparator
- type Enumerator
- type Float
- func (f Float[T]) Abs() T
- func (f Float[T]) Ceil() T
- func (b Float) CoreTypeName() string
- func (b Float) DeepEqual(v T) bool
- func (b Float) Equal(v T) bool
- func (f Float[T]) Float32() float32
- func (f Float[T]) Float64() float64
- func (f Float[T]) Floor() T
- func (f Float[T]) Int() int
- func (f Float[T]) Int16() int16
- func (f Float[T]) Int32() int32
- func (f Float[T]) Int64() int64
- func (f Float[T]) Int8() int8
- func (f Float[T]) IsNegative() bool
- func (f Float[T]) IsPositive() bool
- func (f Float[T]) IsZero() bool
- func (b Float) Print(label string)
- func (b Float) Ptr() *T
- func (f Float[T]) Round() T
- func (f Float[T]) Str() Str
- func (b Float) String() string
- func (f Float[T]) UInt16() uint16
- func (f Float[T]) UInt32() uint32
- func (f Float[T]) UInt64() uint64
- func (f Float[T]) UInt8() uint8
- func (b Float) Validate() error
- func (b Float) Value() T
- type Integer
- func (b Integer) CoreTypeName() string
- func (b Integer) DeepEqual(v T) bool
- func (b Integer) Equal(v T) bool
- func (i Integer[T]) Float() Float[float64]
- func (i Integer[T]) Int() int
- func (i Integer[T]) Int16() int16
- func (i Integer[T]) Int32() int32
- func (i Integer[T]) Int64() int64
- func (i Integer[T]) Int8() int8
- func (i Integer[T]) IsNegative() bool
- func (i Integer[T]) IsPositive() bool
- func (i Integer[T]) IsZero() bool
- func (b Integer) Print(label string)
- func (b Integer) Ptr() *T
- func (i Integer[T]) Str() Str
- func (b Integer) String() string
- func (i Integer[T]) UInt16() uint16
- func (i Integer[T]) UInt32() uint32
- func (i Integer[T]) UInt64() uint64
- func (i Integer[T]) UInt8() uint8
- func (b Integer) Validate() error
- func (b Integer) Value() T
- type Str
- func (s Str) Bytes() []byte
- func (b Str) CoreTypeName() string
- func (b Str) DeepEqual(v T) bool
- func (b Str) Equal(v T) bool
- func (s Str) Include(sub string) bool
- func (b Str) Print(label string)
- func (b Str) Ptr() *T
- func (s Str) Size() int
- func (s Str) Split(sep string) []Str
- func (b Str) String() string
- func (b Str) Validate() error
- func (b Str) Value() T
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool bool
func (Bool) CoreTypeName ¶
type Char ¶
type Char struct {
// contains filtered or unexported fields
}
Example (Char) ¶
c := NewChar("a") fmt.Printf("c: %v\n", c)
Output: c: a
Example (String) ¶
c := NewChar("hoge") fmt.Printf("c: %v\n", c)
Output: c: h
func (Char) CoreTypeName ¶
func (b Char) CoreTypeName() string
type Comparator ¶
type Comparator[T comparable] interface { Equal(T) bool DeepEqual(T) bool }
type Enumerator ¶
type Float ¶
type Float[T constraints.Float] struct { // contains filtered or unexported fields }
Example ¶
f := NewFloat(5.5) fmt.Printf("f: %v\n", f)
Output: f: 5.5
func NewFloat ¶
func NewFloat[T constraints.Float](v T) Float[T]
func (Float) CoreTypeName ¶
func (b Float) CoreTypeName() string
func (Float[T]) IsNegative ¶
func (Float[T]) IsPositive ¶
type Integer ¶
type Integer[T constraints.Integer] struct { // contains filtered or unexported fields }
func NewInteger ¶
func NewInteger[T constraints.Integer](i T) Integer[T]
func (Integer) CoreTypeName ¶
func (b Integer) CoreTypeName() string
func (Integer[T]) IsNegative ¶
func (Integer[T]) IsPositive ¶
type Str ¶
type Str struct {
// contains filtered or unexported fields
}
func NewStrFromBytes ¶
func (Str) CoreTypeName ¶
func (b Str) CoreTypeName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.