sql-to-go
Installation
SKILL.md
SQL to Go Struct
Quick Start
Convert a MySQL CREATE TABLE statement to a Go struct with tags:
- Parse the CREATE TABLE statement to extract table name, columns, and constraints
- Map each MySQL column type to corresponding Go type
- Convert snake_case column names to CamelCase field names
- Generate struct with
form,json, andxormtags
Type Mapping
For complete MySQL to Go type mappings, see type_mappings.md.