I Fought the Code, and the Code Won

Mark Bates
Jul 12, 2018 · 5 min read


g := genny.Background()
g = pop.WithModel(g)
g = sql.WithMigrations(g)
g = 3rdparty.WithModelTests(g)
g = buffalo.AsAPI(g)
g = buffalo.WithResource(g)
g = 3rdparty.WithResourceTests(g)
g = react.WithTemplates(g)
g = react.WithTemplateTests(g)
g = genny.DryRun(g)
g = genny.WithLogger(l, g)
g.Run()
type Generator interface {
Context() context.Context
Run() error
Parent() Generator
Logger() Logger
File() File
Cmd() *exec.Cmd
}




Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade