first pass at a "builder" interface

This commit is contained in:
Michael McLoughlin
2018-11-30 20:43:31 -08:00
parent b65b6c02b8
commit 9b9f5b7e0c
11 changed files with 10069 additions and 84 deletions

View File

@@ -34,7 +34,7 @@ func (p *GoPrinter) SetGeneratedBy(by string) {
func (p *GoPrinter) Print(f *File) error {
p.header()
for _, fn := range f.functions {
for _, fn := range f.Functions {
p.function(fn)
}