Documentation ¶
Index ¶
- Constants
- func SliceFrom[T any](iterable Iterable[T]) []T
- type AbstractObject
- type Bool
- type Comparable
- type ComparableObject
- type Comparator
- type Float32
- type Float64
- type Int
- type Int16
- type Int32
- type Int64
- type Int8
- type Iterable
- type IterableObject
- type Iterator
- type Number
- func (n *Number) CompareTo(other *Number) int
- func (n *Number) Equals(other any) bool
- func (n *Number) Float64() (float64, error)
- func (n *Number) HashCode() uint64
- func (n *Number) Int64() (int64, error)
- func (n *Number) MarshalJSON() ([]byte, error)
- func (n *Number) String() string
- func (n *Number) UnmarshalJSON(bytes []byte) error
- func (n *Number) Unwrap() json.Number
- type Object
- type Optional
- type String
- type UInt
- type UInt16
- type UInt32
- type UInt64
- type UInt8
Constants ¶
View Source
const (
ErrorCodeNotPresent errors.ErrorCode = "ObjectsErrorCodeNotPresent"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbstractObject ¶
type AbstractObject struct{}
func (*AbstractObject) Equals ¶
func (obj *AbstractObject) Equals(other any) bool
func (*AbstractObject) HashCode ¶
func (obj *AbstractObject) HashCode() uint64
func (*AbstractObject) MarshalJSON ¶ added in v0.1.3
func (obj *AbstractObject) MarshalJSON() ([]byte, error)
func (*AbstractObject) String ¶ added in v0.1.3
func (obj *AbstractObject) String() string
func (*AbstractObject) UnmarshalJSON ¶ added in v0.1.3
func (obj *AbstractObject) UnmarshalJSON([]byte) error
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func (*Bool) MarshalJSON ¶ added in v0.1.3
func (*Bool) UnmarshalJSON ¶ added in v0.1.3
type Comparable ¶
Comparable is an interface for objects that can be compared.
type ComparableObject ¶ added in v0.1.2
type ComparableObject[T any] interface { Object Comparable[T] }
ComparableObject is an interface for objects that can be compared.
type Comparator ¶
Comparator is an interface for objects that can compare two objects.
func ComparableComparator ¶ added in v0.1.2
func ComparableComparator[T Comparable[T]]() Comparator[T]
ComparableComparator returns a comparator that uses the CompareTo method of the given comparable object.
func ReverseComparator ¶ added in v0.1.2
func ReverseComparator[T any](comparator Comparator[T]) Comparator[T]
ReverseComparator returns a comparator that reverses the order of the given comparator.
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
func WrapFloat32 ¶
func (*Float32) MarshalJSON ¶ added in v0.1.3
func (*Float32) UnmarshalJSON ¶ added in v0.1.3
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
func WrapFloat64 ¶
func (*Float64) MarshalJSON ¶ added in v0.1.3
func (*Float64) UnmarshalJSON ¶ added in v0.1.3
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (*Int) MarshalJSON ¶ added in v0.1.3
func (*Int) UnmarshalJSON ¶ added in v0.1.3
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
func (*Int16) MarshalJSON ¶ added in v0.1.3
func (*Int16) UnmarshalJSON ¶ added in v0.1.3
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) MarshalJSON ¶ added in v0.1.3
func (*Int32) UnmarshalJSON ¶ added in v0.1.3
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
func (*Int64) MarshalJSON ¶ added in v0.1.3
func (*Int64) UnmarshalJSON ¶ added in v0.1.3
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
func (*Int8) MarshalJSON ¶ added in v0.1.3
func (*Int8) UnmarshalJSON ¶ added in v0.1.3
type IterableObject ¶ added in v0.1.2
type Number ¶ added in v0.1.3
type Number struct {
// contains filtered or unexported fields
}
func WrapNumber ¶ added in v0.1.3
func (*Number) MarshalJSON ¶ added in v0.1.3
func (*Number) UnmarshalJSON ¶ added in v0.1.3
type Optional ¶ added in v0.1.1
func EmptyOptional ¶ added in v0.1.1
func OptionalOf ¶ added in v0.1.1
type String ¶
type String struct {
// contains filtered or unexported fields
}
func WrapString ¶
func (*String) MarshalJSON ¶ added in v0.1.3
func (*String) UnmarshalJSON ¶ added in v0.1.3
type UInt ¶
type UInt struct {
// contains filtered or unexported fields
}
func (*UInt) MarshalJSON ¶ added in v0.1.3
func (*UInt) UnmarshalJSON ¶ added in v0.1.3
type UInt16 ¶
type UInt16 struct {
// contains filtered or unexported fields
}
func WrapUInt16 ¶
func (*UInt16) MarshalJSON ¶ added in v0.1.3
func (*UInt16) UnmarshalJSON ¶ added in v0.1.3
type UInt32 ¶
type UInt32 struct {
// contains filtered or unexported fields
}
func WrapUInt32 ¶
func (*UInt32) MarshalJSON ¶ added in v0.1.3
func (*UInt32) UnmarshalJSON ¶ added in v0.1.3
type UInt64 ¶
type UInt64 struct {
// contains filtered or unexported fields
}
func WrapUInt64 ¶
func (*UInt64) MarshalJSON ¶ added in v0.1.3
func (*UInt64) UnmarshalJSON ¶ added in v0.1.3
type UInt8 ¶
type UInt8 struct {
// contains filtered or unexported fields
}
func (*UInt8) MarshalJSON ¶ added in v0.1.3
func (*UInt8) UnmarshalJSON ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.