moznion/gonstructor
A command-line tool to generate a constructor for the struct.
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.
Stars
94
Forks
10
Language
Go
License
BSD-3-Clause
Category
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.
Related tools
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.