internal/gen: doc exported symbols (#9)

This commit is contained in:
Michael McLoughlin
2019-01-05 14:12:50 -08:00
parent c3a3000908
commit cf1739b920
7 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ type build struct {
prnt.Generator
}
// NewBuild builds a printer that will generate instruction functions in the
// build package. Each instruction will have one method on the build.Context
// type, and a corresponding wrapper operating on the global Context. These
// functions are thin wrappers around constructors generated by NewCtors.
func NewBuild(cfg printer.Config) Interface {
return GoFmt(&build{cfg: cfg})
}