# hexdigest/gowrap

GoWrap is a command line tool for generating decorators for Go interfaces

Repository: https://github.com/hexdigest/gowrap
Canonical: https://ross.abutalabs.com/products/gowrap
Language: Go
License: MIT
License Family: permissive
Topics: golang-tools, golang, go, code-generation, interface, interfaces, decorators, prometheus, prometheus-metrics, logrus, fallback
Last push: 2026-07-24T19:56:44+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 20, longevity 100
- inputs: {"age_days": 2909, "days_push": 40, "days_rel": 377, "gap_med": 126.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1336, forks 94 (observed 2026-08-28T04:04:25.518041+00:00)

## What it is
GoWrap is a command line tool that generates decorator implementations for Go interface types using templates. It lets developers quickly add cross-cutting concerns like metrics, tracing, fallbacks, and circuit breaking to existing interfaces.

## Use cases
- generate prometheus metrics decorators for go interfaces
- add tracing wrappers to existing go code
- generate fallback decorators for go interfaces
- wrap go interfaces with circuit breaker logic
- generate interface implementations from templates
- add logging decorators to go interfaces

## When to choose
- you maintain Go codebases and want to add metrics, tracing, or fallbacks to interfaces without hand-writing boilerplate
- you want template-driven, repeatable code generation integrated with go:generate

## When to avoid
- you work outside the Go language
- you need runtime (not compile-time) dynamic proxying or reflection-based wrapping

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli, monitoring, logging
- domain: developer-tools, backend, programming-languages
- platform: go, cli, cross-platform
- tags: go, decorators, interface-wrapping, code-generation, prometheus, tracing, fallback, templates, command-line

## Member repositories
- hexdigest/gowrap (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.518041+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-30T04:44:15.583054+00:00, confidence not recorded.
  - readme: https://github.com/hexdigest/gowrap (fetched 2026-08-28T04:04:25.518041+00:00, sha cc0ae470fabd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
