# Masterminds/sprig

Useful template functions for Go templates.

Repository: https://github.com/Masterminds/sprig
Canonical: https://ross.abutalabs.com/products/sprig
Homepage: http://masterminds.github.io/sprig/
Language: Go
License: MIT
License Family: permissive
Topics: go, template, templates
Last push: 2025-07-18T13:29:21+00:00

## Health v2 (maintenance only)
Score: 37/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 32, release rhythm 8, longevity 100
- inputs: {"age_days": 4668, "days_push": 411, "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 4738, forks 476 (observed 2026-08-28T04:08:57.773665+00:00)

## What it is
Sprig is a Go library providing over 100 commonly used template functions for Go's built-in text/template and html/template languages. It supplies string, math, list, dict, date, encoding, crypto, and other utility functions as a single FuncMap.

## Use cases
- add string manipulation functions to Go templates
- use dict and list helpers in Go template rendering
- generate UUIDs and hashes inside templates
- format dates and do math in Go templates
- extend Helm-style templating with utility functions

## When to choose
- you write Go programs that render templates and need more built-in functions
- you want a well-maintained, widely adopted FuncMap library

## When to avoid
- you need template functions for languages other than Go
- you want a full template engine rather than functions for Go's standard templates

## Facets
- artifact type: library
- maturity: stable
- function: templating, developer-tools
- domain: developer-tools, web-development
- platform: go, cross-platform
- tags: go-templates, template-functions, funcmap, helm, automation

## Member repositories
- Masterminds/sprig (main) score 37

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:57.773665+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:18:58.616584+00:00, confidence not recorded.
  - readme: https://github.com/Masterminds/sprig (fetched 2026-08-28T04:08:57.773665+00:00, sha cbdbfce125ee)
  - homepage: http://masterminds.github.io/sprig/ (fetched 2026-08-29T09:02:29.717765+00:00, sha 2aa96a181d32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
