moznion/gonstructor

A command-line tool to generate a constructor for the struct.

50
/ 100
Established

Supports multiple constructor patterns (all-args and builder), optional initialization hooks with return value propagation, and getter generation for enforcing data encapsulation. Integrates with Go's `go generate` directive and uses `goimports` for automatic import management and code formatting. Handles field-level exclusion via struct tags and can generate code for multiple types into a single file.

No Package No Dependents
Maintenance 13 / 25
Adoption 9 / 25
Maturity 16 / 25
Community 12 / 25

How are scores calculated?

Stars

94

Forks

10

Language

Go

License

BSD-3-Clause

Last pushed

Mar 12, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/moznion/gonstructor"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.