# thoas/go-funk

A modern Go utility library which provides helpers (map, find, contains, filter, ...)

Repository: https://github.com/thoas/go-funk
Canonical: https://ross.abutalabs.com/products/go-funk
Language: Go
License: MIT
License Family: permissive
Last push: 2024-07-24T11:49:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3533, "days_push": 770, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4932, forks 277 (observed 2026-08-28T04:09:02.652796+00:00)

## What it is
go-funk is a Go utility library providing generic collection helpers like map, filter, find, and contains, implemented via reflection. It is inspired by lodash and offers both reflective and typesafe implementations.

## Use cases
- check if a slice contains an element in Go
- filter and map over slices without writing per-type loops
- find an element in a collection by predicate
- avoid writing ContainsInt-style helpers for every type
- manipulate slices and maps with lodash-like helpers

## When to choose
- you need lodash-style collection helpers in Go
- you want to reduce boilerplate contains/filter/map code across many types
- you have a solid test suite and accept reflection overhead

## When to avoid
- performance-critical hot paths where reflection cost matters
- you prefer Go 1.21+ generics with typesafe code
- you need compile-time type safety guarantees

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools
- platform: go
- tags: utility-library, lodash-inspired, reflection, functional-helpers, collections, algorithms

## Member repositories
- thoas/go-funk (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:02.652796+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:58.560326+00:00, confidence not recorded.
  - readme: https://github.com/thoas/go-funk (fetched 2026-08-28T04:09:02.652796+00:00, sha 22a9069a40e4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
