Turn a JSON payload into a Go struct with json tags, gofmt-aligned columns and omitempty where the sample says a field is optional.
The result appears hereBecause naming them would mean inventing names the sample never gave you. An anonymous struct is valid Go and pastes straight in; lift a nested one into a named type when you need to pass it around.
When the sample showed null for that field. A pointer is the only way Go can tell an absent value from a zero one, which is why a nullable string comes out as *string rather than string.
Because JSON numbers are 64-bit floats and an id that fits today may not fit on a 32-bit build. Narrow it by hand where you know the range.
2189 blocks and 1325 pieces for shadcn/ui and Tailwind, built on the same tokens these tools write. Install one with a command and the code is yours.
Browse the blocksNo signup for the tools. MIT for free blocks, commercial licence for Pro.