Documentation
¶
Overview ¶
Package utils is a set of utilities for the console server.
Index ¶
- func ConvertMapValues[K comparable, T any, G any](input map[K]T, f func(x T) G) map[K]G
- func FlatMap[T any, G any](slice []T, f func(x T) []G) []G
- func FromCivilDate(civilDate civil.Date) *fleetconsolerpc.DateOnly
- func InvalidFilterError(err error) error
- func InvalidOrderByError(err error) error
- func InvalidTokenError(err error) error
- func Map[T any, G any](slice []T, f func(x T) G) []G
- func NewDateOnly(year int32, month int32, day int32) *fleetconsolerpc.DateOnly
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMapValues ¶
func ConvertMapValues[K comparable, T any, G any](input map[K]T, f func(x T) G) map[K]G
func FromCivilDate ¶
func FromCivilDate(civilDate civil.Date) *fleetconsolerpc.DateOnly
func InvalidFilterError ¶
func InvalidOrderByError ¶
func InvalidTokenError ¶
func NewDateOnly ¶
func NewDateOnly(year int32, month int32, day int32) *fleetconsolerpc.DateOnly
Types ¶
Click to show internal directories.
Click to hide internal directories.