Versions in this module Expand all Collapse all v0 v0.0.2 Nov 26, 2022 Changes in this version + func GenerateTimeRanges(start, end time.Time, interval time.Duration) []time.Time + type LimitedHeap struct + func NewLimitedHeap(limit int, less func(a, b T) bool) *LimitedHeap[T] + func (h LimitedHeap[T]) Len() int + func (h LimitedHeap[T]) PopAll() []T + func (h LimitedHeap[T]) Push(x T) v0.0.1 Oct 15, 2022 Changes in this version + func GetEnv(key string) (string, error) + func Join(vals []T, sep string, f func(T) string) string + func NewInvalidAstError(msg string) error + func NewUnsupportedError(msg string) error + func NormalizeTimeByHour(t time.Time) time.Time + func Ptr(v T) *T + func SliceOrEmpty(vals []T) []T + func Sort(vals []T, f func(v T) U) + func UniqBy(vals []T, fn func(T) U) []T + type HttpTransport struct + Transport http.RoundTripper + func NewHttpTransport() *HttpTransport + func (ht *HttpTransport) RoundTrip(req *http.Request) (*http.Response, error) + type InvalidAstError struct + func (ie *InvalidAstError) Error() string + type Set struct + func NewSet() *Set[T] + func NewSetS(origins []T) *Set[T] + func (s *Set[T]) Add(val T) + func (s *Set[T]) Contains(val T) bool + func (s *Set[T]) Count() int + func (s *Set[T]) Delete(val T) + func (s *Set[T]) Merge(os *Set[T]) + func (s *Set[T]) Values() []T + type Stack struct + func NewStack() *Stack[T] + func (s *Stack[T]) Pop() *T + func (s *Stack[T]) Push(val *T) + func (s *Stack[T]) Size() int + func (s *Stack[T]) Top() *T + type UnsupportedError struct + func (ue *UnsupportedError) Error() string