Documentation ¶
Index ¶
- Constants
- Variables
- func Concurrently(fns ...func() any) []any
- func Filter[T any](s []T, f func(T) bool) []T
- func HashString(s string) string
- func Map[T, U any](s []T, f func(T) U) []U
- func Mapper[Key comparable, T any](s []T, f func(T) Key) map[Key]T
- func ReadZipFile(zf *zip.File) ([]byte, error)
- func Reduce[T, U any](s []T, f func(U, T) U, init U) U
- func SemverFix(version string) (string, error)
- func ZipReaderFromResponse(resp *http.Response) (*zip.Reader, error)
- type CompareResult
- type Date
Constants ¶
View Source
const ISO8601Format = "2006-01-02T15:04:05.000"
Variables ¶
View Source
var (
ErrInvalidVersion = fmt.Errorf("invalid version")
)
Functions ¶
func Concurrently ¶ added in v0.3.0
func HashString ¶ added in v0.3.0
func Mapper ¶ added in v0.3.0
func Mapper[Key comparable, T any](s []T, f func(T) Key) map[Key]T
Types ¶
type CompareResult ¶ added in v0.3.0
type CompareResult[T any] struct { OnlyInA []T OnlyInB []T InBoth []T }
func CompareSlices ¶ added in v0.3.0
func CompareSlices[T any, K comparable](a, b []T, serializer func(T) K) CompareResult[T]
Source Files ¶
Click to show internal directories.
Click to hide internal directories.