Documentation
¶
Overview ¶
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- Variables
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func KeysSorted[M ~map[K]V, K cmp.Ordered, V any](m M) []K
- func Must[T any](value T, err error) T
- func MustParseTime(layout, value string) time.Time
- func MustReadAll(r io.ReadCloser) []byte
- func OptionFlatMapConvert[T any, V any](input mo.Option[T], mapF func(mo.Option[T]) (mo.Option[V], error)) (mo.Option[V], error)
- func OptionMapConvert[T any, V any](input mo.Option[T], mapF func(T) (V, error)) (mo.Option[V], error)
- func ToListByFunc[T any, K comparable](sliceList []T, keyFunc func(T) K) []K
- func ToMapIndexedByFunc[T any, K comparable, V any](sliceList []T, keyFunc func(T) (K, V)) map[K]V
- func ToSet[T comparable](sliceList []T) map[T]struct{}
- func ToSetIndexed[T comparable](sliceList []T) map[T]int
- func Uniq[T comparable](sliceList []T) []T
- type AnyInteger
- type CloseTimeMatcher
- type Matcher
- type MatcherFunc
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
var Version string
Functions ¶
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
Keys returns the keys of the map m. The keys will be an indeterminate order.
func KeysSorted ¶
Keys returns the keys of the map m. The keys will be an indeterminate order.
func MustParseTime ¶
func MustReadAll ¶
func MustReadAll(r io.ReadCloser) []byte
func OptionFlatMapConvert ¶
func OptionMapConvert ¶
func ToListByFunc ¶
func ToListByFunc[T any, K comparable](sliceList []T, keyFunc func(T) K) []K
func ToMapIndexedByFunc ¶
func ToMapIndexedByFunc[T any, K comparable, V any](sliceList []T, keyFunc func(T) (K, V)) map[K]V
func ToSet ¶
func ToSet[T comparable](sliceList []T) map[T]struct{}
func ToSetIndexed ¶
func ToSetIndexed[T comparable](sliceList []T) map[T]int
func Uniq ¶
func Uniq[T comparable](sliceList []T) []T
Types ¶
type AnyInteger ¶ added in v1.1.0
type CloseTimeMatcher ¶
func (CloseTimeMatcher) Match ¶
func (a CloseTimeMatcher) Match(v interface{}) bool
Match satisfies sqlmock.Argument interface
type MatcherFunc ¶
type MatcherFunc func(v interface{}) bool
type VersionInfo ¶
func GetVersion ¶
func GetVersion() (VersionInfo, error)