# fatih/gomodifytags

Go tool to modify struct field tags

Repository: https://github.com/fatih/gomodifytags
Canonical: https://ross.abutalabs.com/products/gomodifytags
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: go, structs, tags, golang, tool
Last push: 2025-04-23T14:27:48+00:00

## Health v2 (maintenance only)
Score: 31/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 18, release rhythm 8, longevity 100
- inputs: {"age_days": 3523, "days_push": 497, "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 2392, forks 139 (observed 2026-08-28T04:06:43.396683+00:00)

## What it is
gomodifytags is a Go command-line tool for modifying, adding, or removing struct field tags in Go source files. It is designed to be integrated into editors like vim, VS Code, and Emacs, but also works standalone from the terminal.

## Use cases
- add  tags to all fields in a Go struct
- update existing struct tags like db or xml keys
- remove tags from struct fields in Go code
- add or remove tag options such as omitempty
- integrate struct tag editing into my editor
- batch modify tags across all structs in a file

## When to choose
- you frequently write or maintain Go structs with serialization tags
- you want editor integration for managing struct tags
- you need to script tag modifications across Go source files

## When to avoid
- you work in languages other than Go
- you need a GUI-based code editing tool
- you only need to read tags rather than modify them

## Facets
- artifact type: cli-tool
- maturity: stable
- function: developer-tools, cli, code-review
- domain: developer-tools, web-development
- platform: cli, cross-platform, editor-plugin
- tags: go, struct-tags, editor-integration, code-generation, command-line

## Member repositories
- fatih/gomodifytags (main) score 31

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.396683+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-30T02:34:27.191437+00:00, confidence not recorded.
  - readme: https://github.com/fatih/gomodifytags (fetched 2026-08-28T04:06:43.396683+00:00, sha 726bd67dbedb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
