Documentation ¶
Index ¶
- type AnyOf
- type AnyOfRuler
- type AnyOfSupporter
- type Boolean
- type Float
- func (t Float) Equals(compT Float) bool
- func (t Float) MarshalJSON() ([]byte, error)
- func (t Float) Precision() int
- func (t Float) SetPrecision(precision int) Float
- func (t Float) String() string
- func (t Float) ToFloat64() float64
- func (t Float) ToNullableFloat() NullableFloat
- func (t Float) ToUndefinableFloat() UndefinableFloat
- func (t *Float) UnmarshalJSON(data []byte) error
- type Int
- type MicroTime
- func (t MicroTime) IsPast() bool
- func (t MicroTime) IsSame(compT MicroTime) bool
- func (t MicroTime) MarshalJSON() ([]byte, error)
- func (t MicroTime) String() string
- func (t MicroTime) ToNullableMicroTime() NullableMicroTime
- func (t MicroTime) ToSecondsFromNow() int
- func (t MicroTime) ToTime() time.Time
- func (t MicroTime) ToUndefinableMicroTime() UndefinableMicroTime
- func (t MicroTime) ToUnix() int64
- func (t MicroTime) ToUtcString() string
- func (t MicroTime) TruncatedToSeconds() MicroTime
- func (t *MicroTime) UnmarshalJSON(data []byte) error
- func (t MicroTime) WithAddedDays(days int) MicroTime
- type Nullable
- func (u Nullable[T]) Equals(typeToCompare Nullable[T], compare compareFunc[T]) bool
- func (u Nullable[T]) IsNull() bool
- func (u Nullable[T]) MarshalJSON() ([]byte, error)
- func (u Nullable[T]) String() string
- func (u *Nullable[T]) UnmarshalJSON(data []byte) error
- func (u Nullable[T]) Value() (T, bool)
- type NullableFloat
- type NullableInt
- type NullableMicroTime
- type NullableString
- type NullableSupporter
- type NullableUuid
- type PasswordHash
- func (t PasswordHash) FindPasswordsUtf8RuneCount() (int, bool)
- func (t PasswordHash) IsSame(compHash PasswordHash) bool
- func (t PasswordHash) MarshalJSON() ([]byte, error)
- func (t PasswordHash) String() string
- func (t PasswordHash) ToString() string
- func (t PasswordHash) ToUndefinablePasswordHash() UndefinablePasswordHash
- func (t *PasswordHash) UnmarshalJSON(data []byte) error
- func (t PasswordHash) Validate(password String) bool
- type RelativeDayTime
- func (t RelativeDayTime) Equals(compT RelativeDayTime) bool
- func (t RelativeDayTime) IsBefore(compT RelativeDayTime) bool
- func (t RelativeDayTime) IsValid() bool
- func (t RelativeDayTime) MarshalJSON() ([]byte, error)
- func (t RelativeDayTime) String() string
- func (t RelativeDayTime) ToString() string
- func (t RelativeDayTime) ToTime(ianaTimezone string) (time.Time, error)
- func (t RelativeDayTime) ToTimeOrPanic(ianaTimezone string) time.Time
- func (t *RelativeDayTime) UnmarshalJSON(data []byte) error
- type RelativeTime
- func (t RelativeTime) Equals(compT RelativeTime) bool
- func (t RelativeTime) IsBefore(compT RelativeTime) bool
- func (t RelativeTime) IsValid() bool
- func (t RelativeTime) MarshalJSON() ([]byte, error)
- func (t RelativeTime) String() string
- func (t RelativeTime) ToString() string
- func (t RelativeTime) ToTime(ianaTimezone string) (time.Time, error)
- func (t RelativeTime) ToTimeOrPanic(ianaTimezone string) time.Time
- func (t *RelativeTime) UnmarshalJSON(data []byte) error
- type String
- func (t String) EqualsCaseInSensitive(compT String) bool
- func (t String) EqualsCaseSensitive(compT String) bool
- func (t String) GetUtf8RuneCount() int
- func (t String) HasEmailAddressFormat() bool
- func (t String) HasUrlFormat() bool
- func (t String) MarshalJSON() ([]byte, error)
- func (t String) String() string
- func (t String) ToLowerCaseString() string
- func (t String) ToNullableString() NullableString
- func (t String) ToPasswordHash(cost int) (PasswordHash, error)
- func (t String) ToString() string
- func (t String) ToStrings() Strings
- func (t String) ToUndefinableNullableString() UndefinableNullableString
- func (t String) ToUndefinableString() UndefinableString
- func (t *String) UnmarshalJSON(data []byte) error
- type Strings
- func (t Strings) Add(content String) Strings
- func (t Strings) Count() int
- func (t Strings) EqualsCaseSensitive(compT Strings) bool
- func (t Strings) MarshalJSON() ([]byte, error)
- func (t Strings) String() string
- func (t Strings) ToStrings() []string
- func (t Strings) ToUndefinableStrings() UndefinableStrings
- func (t *Strings) UnmarshalJSON(data []byte) error
- type Undefinable
- func (u Undefinable[T]) Equals(typeToCompare Undefinable[T], compare compareFunc[T]) bool
- func (u Undefinable[T]) IsUndefined() bool
- func (u Undefinable[T]) MarshalJSON() ([]byte, error)
- func (u Undefinable[T]) String() string
- func (u *Undefinable[T]) UnmarshalJSON(data []byte) error
- func (u Undefinable[T]) Value() (T, bool)
- type UndefinableBoolean
- type UndefinableFloat
- type UndefinableInt
- type UndefinableMicroTime
- type UndefinableNullableFloat
- type UndefinableNullableInt
- type UndefinableNullableMicroTime
- type UndefinableNullableString
- type UndefinableNullableUuid
- type UndefinablePasswordHash
- type UndefinableString
- type UndefinableStrings
- type UndefinableSupporter
- type UndefinableUuid
- type UndefinableUuids
- type Uuid
- func (t Uuid) Equals(compT Uuid) bool
- func (t Uuid) IsValid() bool
- func (t Uuid) MarshalJSON() ([]byte, error)
- func (t Uuid) PanicWhenInvalid()
- func (t Uuid) String() string
- func (t Uuid) ToLowerCaseUuidString() string
- func (t Uuid) ToNullableUuid() NullableUuid
- func (t Uuid) ToUndefinableNullableUuid() UndefinableNullableUuid
- func (t Uuid) ToUndefinableUuid() UndefinableUuid
- func (t Uuid) ToUuids() Uuids
- func (t *Uuid) UnmarshalJSON(data []byte) error
- type Uuids
- func (t Uuids) Contains(uuidToFind Uuid) bool
- func (t Uuids) Count() int
- func (t Uuids) Equals(compT Uuids) bool
- func (t Uuids) MarshalJSON() ([]byte, error)
- func (t Uuids) String() string
- func (t Uuids) ToLowercaseUuidStrings() []string
- func (t Uuids) ToUndefinableUuids() UndefinableUuids
- func (t *Uuids) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyOf ¶
type AnyOf[T AnyOfRuler] struct { // contains filtered or unexported fields }
func NewAnyOf ¶
func NewAnyOf[T AnyOfRuler](value any) AnyOf[T]
func (AnyOf[T]) MarshalJSON ¶
func (AnyOf[T]) Ruler ¶
func (t AnyOf[T]) Ruler() AnyOfRuler
func (*AnyOf[T]) UnmarshalJSON ¶
type AnyOfRuler ¶
type AnyOfSupporter ¶
type AnyOfSupporter interface { Ruler() AnyOfRuler // contains filtered or unexported methods }
type Boolean ¶
type Boolean bool
func NewBoolean ¶
func (Boolean) MarshalJSON ¶
func (Boolean) ToUndefinableBoolean ¶
func (t Boolean) ToUndefinableBoolean() UndefinableBoolean
func (*Boolean) UnmarshalJSON ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func (Float) MarshalJSON ¶
func (Float) SetPrecision ¶
func (Float) ToNullableFloat ¶
func (t Float) ToNullableFloat() NullableFloat
func (Float) ToUndefinableFloat ¶
func (t Float) ToUndefinableFloat() UndefinableFloat
func (*Float) UnmarshalJSON ¶
type Int ¶
type Int int64
func (Int) MarshalJSON ¶
func (Int) ToNullableInt ¶
func (t Int) ToNullableInt() NullableInt
func (Int) ToUndefinableInt ¶
func (t Int) ToUndefinableInt() UndefinableInt
func (*Int) UnmarshalJSON ¶
type MicroTime ¶
func NewUtcMicroTimeFromTime ¶
func NewUtcMicroTimeNow ¶
func NewUtcMicroTimeNow() MicroTime
func (MicroTime) MarshalJSON ¶
func (MicroTime) ToNullableMicroTime ¶
func (t MicroTime) ToNullableMicroTime() NullableMicroTime
func (MicroTime) ToSecondsFromNow ¶
func (MicroTime) ToUndefinableMicroTime ¶
func (t MicroTime) ToUndefinableMicroTime() UndefinableMicroTime
func (MicroTime) ToUtcString ¶
func (MicroTime) TruncatedToSeconds ¶
func (*MicroTime) UnmarshalJSON ¶
func (MicroTime) WithAddedDays ¶
type Nullable ¶
type Nullable[T any] struct { // contains filtered or unexported fields }
func NewNullable ¶
func (Nullable[T]) MarshalJSON ¶
func (*Nullable[T]) UnmarshalJSON ¶
type NullableFloat ¶
func (NullableFloat) Equals ¶
func (t NullableFloat) Equals(compT NullableFloat) bool
func (NullableFloat) ToFloatType ¶
func (t NullableFloat) ToFloatType() (Float, bool)
func (NullableFloat) ToUndefinableNullableFloat ¶
func (t NullableFloat) ToUndefinableNullableFloat() UndefinableNullableFloat
type NullableInt ¶
func (NullableInt) Equals ¶
func (t NullableInt) Equals(compT NullableInt) bool
func (NullableInt) ToUndefinableNullableInt ¶
func (t NullableInt) ToUndefinableNullableInt() UndefinableNullableInt
type NullableMicroTime ¶
func (NullableMicroTime) IsSame ¶
func (t NullableMicroTime) IsSame(compT NullableMicroTime) bool
func (NullableMicroTime) ToUndefinableNullableMicroTime ¶
func (t NullableMicroTime) ToUndefinableNullableMicroTime() UndefinableNullableMicroTime
type NullableString ¶
func (NullableString) EqualsCaseSensitive ¶
func (t NullableString) EqualsCaseSensitive(compT NullableString) bool
func (NullableString) ToUndefinableNullableString ¶
func (t NullableString) ToUndefinableNullableString() UndefinableNullableString
func (NullableString) Value ¶
func (t NullableString) Value() (String, bool)
type NullableSupporter ¶
type NullableSupporter interface {
// contains filtered or unexported methods
}
type NullableUuid ¶
func NewNullableUuid ¶
func NewNullableUuid(uuid Uuid) NullableUuid
func (NullableUuid) Equals ¶
func (t NullableUuid) Equals(compT NullableUuid) bool
func (NullableUuid) ToUndefinableNullableUuid ¶
func (t NullableUuid) ToUndefinableNullableUuid() UndefinableNullableUuid
type PasswordHash ¶
type PasswordHash struct {
// contains filtered or unexported fields
}
func NewPasswordHash ¶
func NewPasswordHash(passwordHash string) PasswordHash
func NewPasswordHashFromStringType ¶
func NewPasswordHashFromStringType(password String, cost int) (PasswordHash, error)
func (PasswordHash) FindPasswordsUtf8RuneCount ¶
func (t PasswordHash) FindPasswordsUtf8RuneCount() (int, bool)
func (PasswordHash) IsSame ¶
func (t PasswordHash) IsSame(compHash PasswordHash) bool
func (PasswordHash) MarshalJSON ¶
func (t PasswordHash) MarshalJSON() ([]byte, error)
func (PasswordHash) String ¶
func (t PasswordHash) String() string
func (PasswordHash) ToString ¶
func (t PasswordHash) ToString() string
func (PasswordHash) ToUndefinablePasswordHash ¶
func (t PasswordHash) ToUndefinablePasswordHash() UndefinablePasswordHash
func (*PasswordHash) UnmarshalJSON ¶
func (t *PasswordHash) UnmarshalJSON(data []byte) error
func (PasswordHash) Validate ¶
func (t PasswordHash) Validate(password String) bool
type RelativeDayTime ¶
type RelativeDayTime string
func NewRelativeDayTime ¶
func NewRelativeDayTime(content string) (RelativeDayTime, error)
func (RelativeDayTime) Equals ¶
func (t RelativeDayTime) Equals(compT RelativeDayTime) bool
func (RelativeDayTime) IsBefore ¶
func (t RelativeDayTime) IsBefore(compT RelativeDayTime) bool
func (RelativeDayTime) IsValid ¶
func (t RelativeDayTime) IsValid() bool
func (RelativeDayTime) MarshalJSON ¶
func (t RelativeDayTime) MarshalJSON() ([]byte, error)
func (RelativeDayTime) String ¶
func (t RelativeDayTime) String() string
func (RelativeDayTime) ToString ¶
func (t RelativeDayTime) ToString() string
func (RelativeDayTime) ToTime ¶
func (t RelativeDayTime) ToTime(ianaTimezone string) (time.Time, error)
func (RelativeDayTime) ToTimeOrPanic ¶
func (t RelativeDayTime) ToTimeOrPanic(ianaTimezone string) time.Time
func (*RelativeDayTime) UnmarshalJSON ¶
func (t *RelativeDayTime) UnmarshalJSON(data []byte) error
type RelativeTime ¶
type RelativeTime string
func NewRelativeTime ¶
func NewRelativeTime(content string) (RelativeTime, error)
func (RelativeTime) Equals ¶
func (t RelativeTime) Equals(compT RelativeTime) bool
func (RelativeTime) IsBefore ¶
func (t RelativeTime) IsBefore(compT RelativeTime) bool
func (RelativeTime) IsValid ¶
func (t RelativeTime) IsValid() bool
func (RelativeTime) MarshalJSON ¶
func (t RelativeTime) MarshalJSON() ([]byte, error)
func (RelativeTime) String ¶
func (t RelativeTime) String() string
func (RelativeTime) ToString ¶
func (t RelativeTime) ToString() string
func (RelativeTime) ToTimeOrPanic ¶
func (t RelativeTime) ToTimeOrPanic(ianaTimezone string) time.Time
func (*RelativeTime) UnmarshalJSON ¶
func (t *RelativeTime) UnmarshalJSON(data []byte) error
type String ¶
type String string
func (String) EqualsCaseInSensitive ¶
func (String) EqualsCaseSensitive ¶
func (String) GetUtf8RuneCount ¶
func (String) HasEmailAddressFormat ¶
func (String) HasUrlFormat ¶
func (String) MarshalJSON ¶
func (String) ToLowerCaseString ¶
func (String) ToNullableString ¶
func (t String) ToNullableString() NullableString
func (String) ToPasswordHash ¶
func (t String) ToPasswordHash(cost int) (PasswordHash, error)
func (String) ToUndefinableNullableString ¶
func (t String) ToUndefinableNullableString() UndefinableNullableString
func (String) ToUndefinableString ¶
func (t String) ToUndefinableString() UndefinableString
func (*String) UnmarshalJSON ¶
type Strings ¶
type Strings []String
func (Strings) EqualsCaseSensitive ¶
func (Strings) MarshalJSON ¶
func (Strings) ToUndefinableStrings ¶
func (t Strings) ToUndefinableStrings() UndefinableStrings
func (*Strings) UnmarshalJSON ¶
type Undefinable ¶
type Undefinable[T any] struct { // contains filtered or unexported fields }
func NewUndefinable ¶
func NewUndefinable[T any](content T) Undefinable[T]
func (Undefinable[T]) Equals ¶
func (u Undefinable[T]) Equals(typeToCompare Undefinable[T], compare compareFunc[T]) bool
func (Undefinable[T]) IsUndefined ¶
func (u Undefinable[T]) IsUndefined() bool
func (Undefinable[T]) MarshalJSON ¶
func (u Undefinable[T]) MarshalJSON() ([]byte, error)
func (Undefinable[T]) String ¶
func (u Undefinable[T]) String() string
func (*Undefinable[T]) UnmarshalJSON ¶
func (u *Undefinable[T]) UnmarshalJSON(data []byte) error
func (Undefinable[T]) Value ¶
func (u Undefinable[T]) Value() (T, bool)
type UndefinableBoolean ¶
type UndefinableBoolean struct { Undefinable[Boolean] }
func (UndefinableBoolean) ToBool ¶
func (t UndefinableBoolean) ToBool() (bool, bool)
type UndefinableFloat ¶
type UndefinableFloat struct { Undefinable[Float] }
func (UndefinableFloat) String ¶
func (t UndefinableFloat) String() string
type UndefinableInt ¶
type UndefinableInt struct { Undefinable[Int] }
func (UndefinableInt) String ¶
func (t UndefinableInt) String() string
func (UndefinableInt) ToIntType ¶
func (t UndefinableInt) ToIntType() (Int, bool)
type UndefinableMicroTime ¶
type UndefinableMicroTime struct { Undefinable[MicroTime] }
func (UndefinableMicroTime) IsSame ¶
func (t UndefinableMicroTime) IsSame(compT UndefinableMicroTime) bool
type UndefinableNullableFloat ¶
type UndefinableNullableFloat struct { Undefinable[NullableFloat] }
func (UndefinableNullableFloat) Equals ¶
func (t UndefinableNullableFloat) Equals(compT UndefinableNullableFloat) bool
func (UndefinableNullableFloat) ToNullableFloat ¶
func (t UndefinableNullableFloat) ToNullableFloat() (NullableFloat, bool)
type UndefinableNullableInt ¶
type UndefinableNullableInt struct { Undefinable[NullableInt] }
func (UndefinableNullableInt) Equals ¶
func (t UndefinableNullableInt) Equals(compT UndefinableNullableInt) bool
type UndefinableNullableMicroTime ¶
type UndefinableNullableMicroTime struct { Undefinable[NullableMicroTime] }
func (UndefinableNullableMicroTime) IsSame ¶
func (t UndefinableNullableMicroTime) IsSame(compT UndefinableNullableMicroTime) bool
type UndefinableNullableString ¶
type UndefinableNullableString struct { Undefinable[NullableString] }
func (UndefinableNullableString) EqualsCaseSensitive ¶
func (t UndefinableNullableString) EqualsCaseSensitive(compT UndefinableNullableString) bool
type UndefinableNullableUuid ¶
type UndefinableNullableUuid struct { Undefinable[NullableUuid] }
func (UndefinableNullableUuid) Equals ¶
func (t UndefinableNullableUuid) Equals(compT UndefinableNullableUuid) bool
type UndefinablePasswordHash ¶
type UndefinablePasswordHash struct { Undefinable[PasswordHash] }
type UndefinableString ¶
type UndefinableString struct { Undefinable[String] }
func (UndefinableString) ToString ¶
func (t UndefinableString) ToString() (string, bool)
func (UndefinableString) ToStringType ¶
func (t UndefinableString) ToStringType() (String, bool)
type UndefinableStrings ¶
type UndefinableStrings struct { Undefinable[Strings] }
type UndefinableSupporter ¶
type UndefinableSupporter interface {
// contains filtered or unexported methods
}
type UndefinableUuid ¶
type UndefinableUuid struct { Undefinable[Uuid] }
func NewUndefinableUuid ¶
func NewUndefinableUuid(uuid Uuid) (UndefinableUuid, error)
func NewUndefinableUuidOrPanic ¶
func NewUndefinableUuidOrPanic(uuid Uuid) UndefinableUuid
func (UndefinableUuid) Equals ¶
func (t UndefinableUuid) Equals(compT UndefinableUuid) bool
type UndefinableUuids ¶
type UndefinableUuids struct { Undefinable[Uuids] }
type Uuid ¶
type Uuid string
func NewUuidOrPanic ¶
func NewUuidV4OrPanic ¶
func NewUuidV4OrPanic() Uuid
func (Uuid) MarshalJSON ¶
func (Uuid) PanicWhenInvalid ¶
func (t Uuid) PanicWhenInvalid()
func (Uuid) ToLowerCaseUuidString ¶
func (Uuid) ToNullableUuid ¶
func (t Uuid) ToNullableUuid() NullableUuid
func (Uuid) ToUndefinableNullableUuid ¶
func (t Uuid) ToUndefinableNullableUuid() UndefinableNullableUuid
func (Uuid) ToUndefinableUuid ¶
func (t Uuid) ToUndefinableUuid() UndefinableUuid
func (*Uuid) UnmarshalJSON ¶
type Uuids ¶
type Uuids []Uuid
func (Uuids) MarshalJSON ¶
func (Uuids) ToLowercaseUuidStrings ¶
func (Uuids) ToUndefinableUuids ¶
func (t Uuids) ToUndefinableUuids() UndefinableUuids
func (*Uuids) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.