Documentation ¶
Index ¶
- type CollectionOption
- type LocalDate
- func (d LocalDate) Equals(o LocalDate) bool
- func (d LocalDate) GetDay() int
- func (d LocalDate) GetMonth() time.Month
- func (d LocalDate) GetYear() int
- func (d LocalDate) IsBefore(o LocalDate) bool
- func (d LocalDate) MinusDays(days int) LocalDate
- func (d LocalDate) MinusMonths(months int) LocalDate
- func (d LocalDate) PlusDays(days int) LocalDate
- func (d LocalDate) PlusMonths(months int) LocalDate
- func (d LocalDate) PlusYears(years int) LocalDate
- func (d LocalDate) String() String
- type OffsetDateTime
- type Optional
- func (op Optional[T]) Get() (T, error)
- func (op Optional[T]) GetPointer() (*T, error)
- func (op Optional[T]) IfPresent(doSomething func(t T))
- func (op Optional[T]) IfPresentOrElse(doSomething func(t T), orElse func())
- func (op Optional[T]) IsEmpty() bool
- func (op Optional[T]) IsPresent() bool
- func (op Optional[T]) OrElse(t T) *T
- func (op Optional[T]) OrElseValue(t T) T
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionOption ¶
type LocalDate ¶
func CurrentLocalDate ¶
func CurrentLocalDate() LocalDate
func ParseIsoDate ¶
func (LocalDate) MinusMonths ¶
func (LocalDate) PlusMonths ¶
type OffsetDateTime ¶
func CurrentOffsetDateTime ¶
func CurrentOffsetDateTime() OffsetDateTime
func ParseOffsetDateTime ¶
func ParseOffsetDateTime(s string) (OffsetDateTime, error)
func (OffsetDateTime) String ¶
func (t OffsetDateTime) String() string
type Optional ¶
type Optional[T any] struct { // contains filtered or unexported fields }
func WithPointer ¶
func (Optional[T]) GetPointer ¶
func (Optional[T]) IfPresentOrElse ¶
func (op Optional[T]) IfPresentOrElse(doSomething func(t T), orElse func())
func (Optional[T]) OrElseValue ¶
func (op Optional[T]) OrElseValue(t T) T
Source Files ¶
Click to show internal directories.
Click to hide internal directories.