DEV Community

Cover image for I built a JSON to Go struct generator in 1 day
Tee Wasuchok
Tee Wasuchok

Posted on

I built a JSON to Go struct generator in 1 day

I built a small CLI tool that converts JSON into Go structs automatically.

Features:

  • Supports nested objects

  • Supports arrays

  • Generates struct fields with json tags

  • Simple and fast CLI usage

Example:

structify-go input.json

Output:

type User struct {

Name string json:"name"

Age int json:"age"

}

Looking for feedback, suggestions, or feature ideas 🙏

GitHub:

https://github.com/wasuchok/structify-go

Top comments (0)