utils

package
v0.4.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter added in v0.2.13

func Filter[A any](f func(A) bool, arr []A) []A

func Map added in v0.2.13

func Map[A any, B any](f func(A) B, arr []A) []B

func ParseDate

func ParseDate(date string) time.Time

func Reduce added in v0.4.8

func Reduce[A any, B any](f func(B, A) B, init B, arr []A) B

func Reject added in v0.2.13

func Reject[A any](f func(A) bool, arr []A) []A

func Slugify added in v0.4.3

func Slugify(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL