Metaprogram in Go
How to use Golang to metaprogram a CRUD API.
Published in
17 min readJan 22, 2020
Most modern sites implement some kind of MV* framework, either formally or loosely. If you code a lot, you are likely writing many models (M) over and over, that are mostly similar in structure and only vary in the details of the schema. You define the SQL schema, you create the structs, and you put together some basic CRUD API between the two. Then you may…