README ¶ gen-builder A golang code generator tool to generate Builder pattern code. Usage Add a go:generate annotation to a struct //go:generate go run github.com/paulvollmer/go-genbuilder type Shape2D struct { Kind ShapeKind X int Y int } And then use the generated code to create a Shape2D instance. shape := NewShape2DBuilder(). SetKind("RECT"). SetX(1). SetY(2). Build() Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go version.go Click to show internal directories. Click to hide internal directories.