Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSlug ¶ added in v0.9.0
GenerateSlug creates a URL-safe slug from a string
func MapValues ¶
func MapValues[K comparable, V any](m map[K]V) []V
Example ¶
ages := map[string]int{
"aFirstName": 1,
"aSecondName": 3,
"aThirdName": 5,
}
values := MapValues(ages)
fmt.Println(len(values)) // Order not guaranteed, just print length
Output: 3
Types ¶
type ClockInterface ¶ added in v0.4.0
func NewClock ¶ added in v0.4.1
func NewClock(opts ...ClockOption) ClockInterface
type ClockOption ¶ added in v0.4.0
type ClockOption func(*clock)
func WithFake ¶ added in v0.4.0
func WithFake(timeFunc FakeTimeFunc) ClockOption
type FakeTimeFunc ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.