# fatih/structs

Utilities for Go structs

Repository: https://github.com/fatih/structs
Canonical: https://ross.abutalabs.com/products/structs
Homepage: http://godoc.org/github.com/fatih/structs
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, structs
Archived: true
Last push: 2018-10-10T23:18:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4421, "days_push": 2884, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3923, forks 697 (observed 2026-08-28T04:08:29.802986+00:00)

## What it is
A Go library providing high-level utilities for working with structs via reflection, such as converting structs to maps, extracting field names and values, and checking zero states. The project is archived and no longer maintained.

## Use cases
- convert a go struct to map[string]interface{}
- get field names and values from a struct
- check if all struct fields are zero
- inspect struct fields with reflection
- get the name of a struct type

## When to choose
- you need simple struct-to-map conversion in Go and are fine with an unmaintained but stable v1 library

## When to avoid
- you need ongoing maintenance or new Go feature support
- you want actively developed alternatives with generics support

## Facets
- artifact type: library
- maturity: abandoned
- function: serialization, developer-tools
- domain: developer-tools, programming-languages
- platform: go
- tags: reflection, structs, go-utilities, archived

## Member repositories
- fatih/structs (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:29.802986+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:24:45.446692+00:00, confidence not recorded.
  - readme: https://github.com/fatih/structs (fetched 2026-08-28T04:08:29.802986+00:00, sha 2f57587f6b8c)
  - homepage: http://godoc.org/github.com/fatih/structs (fetched 2026-08-29T09:18:44.184275+00:00, sha 01cf8d31b942)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:18:44.196308+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/fatih/structs (fetched 2026-08-29T09:18:44.194054+00:00, sha c8b48d28d661)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:18:44.197913+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
