# duke-git/lancet

A comprehensive, efficient, and reusable util function library of Go.

Repository: https://github.com/duke-git/lancet
Canonical: https://ross.abutalabs.com/products/lancet
Homepage: https://www.golancet.cn/en/
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, utils, lodash, generics, library
Last push: 2026-03-07T04:35:06+00:00

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

## Adoption (not part of the score)
Stars 5296, forks 518 (observed 2026-08-28T04:09:15.217107+00:00)

## What it is
Lancet is a comprehensive utility function library for Go with 700+ reusable functions covering strings, slices, datetime, networking, crypto, and more. It is inspired by lodash.js and Apache Commons, uses Go 1.18 generics in v2, and depends only on the standard library and golang.org/x.

## Use cases
- reverse a string in go
- manipulate slices with helper functions in go
- format and parse dates in go
- encrypt and decrypt data in go
- retry a function with backoff in go
- convert between data types safely in go
- find a lodash alternative for golang

## When to choose
- you want a batteries-included utility library for Go similar to lodash
- you need many common helpers without heavy third-party dependencies
- you are on Go 1.18+ and want generics-based utilities
- you prefer well-unit-tested, documented utility functions

## When to avoid
- you only need one or two small helpers and prefer minimal dependencies
- your project must support Go versions below 1.18 and you want generics
- you need domain-specific libraries rather than general-purpose utilities

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, serialization, cryptography, concurrency, error-handling, date-time, math, file-system, form-handling
- domain: developer-tools, web-development, backend
- platform: go, cross-platform
- tags: utility-library, lodash-for-go, generics, string-utils, slice-utils, standard-library-only, command-line

## Member repositories
- duke-git/lancet (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.217107+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-29T17:59:10.445195+00:00, confidence not recorded.
  - readme: https://github.com/duke-git/lancet (fetched 2026-08-28T04:09:15.217107+00:00, sha a0a4ef7c0fd2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
