# gorilla/schema

Package gorilla/schema fills a struct with form values.

Repository: https://github.com/gorilla/schema
Canonical: https://ross.abutalabs.com/products/gorilla-schema
Homepage: https://gorilla.github.io
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: gorilla, go, schema, http, forms, encoder, golang, gorilla-web-toolkit
Last push: 2024-08-19T14:00:33+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5083, "days_push": 744, "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 1506, forks 244 (observed 2026-08-28T04:04:54.988388+00:00)

## What it is
gorilla/schema is a Go library that converts structs to and from HTTP form values, with support for struct tags, custom types, and default values. It is part of the Gorilla web toolkit and is commonly used to decode POST form data into typed structs.

## Use cases
- decode html form post values into a go struct
- encode a struct into url form values for an http request
- bind query parameters to struct fields
- require or rename fields with struct tags
- set default values for missing form fields
- register custom converters for unsupported field types

## When to choose
- you are building Go HTTP handlers that accept form submissions
- you want lightweight struct-to-form mapping without a full framework
- you need bidirectional conversion between structs and url.Values

## When to avoid
- you need JSON or XML binding rather than form values
- you want full-featured request validation beyond required fields
- your project uses a web framework that already includes form binding

## Facets
- artifact type: library
- maturity: stable
- function: serialization, form-handling, web-framework
- domain: web-development, backend, developer-tools
- platform: go, cross-platform
- tags: gorilla, form-values, struct-decoding, struct-encoding, http-forms, web-server

## Member repositories
- gorilla/schema (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.988388+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:32:38.927021+00:00, confidence not recorded.
  - readme: https://github.com/gorilla/schema (fetched 2026-08-28T04:04:54.988388+00:00, sha 511e824bf106)
  - homepage: https://gorilla.github.io (fetched 2026-08-29T11:37:02.095458+00:00, sha aa93940b2bb1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
