Documentation ¶ Index ¶ Constants type Generator func NewGenerator(ts []Template, iface *parser.Interface, strategy Strategy) Generator type Strategy func NewFileStrategy(dir string) Strategy func NewWriterStrategy(writer io.Writer) Strategy type Template Constants ¶ View Source const MkdirPermissions = 0777 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Generator ¶ type Generator interface { Generate() error } func NewGenerator ¶ func NewGenerator(ts []Template, iface *parser.Interface, strategy Strategy) Generator type Strategy ¶ type Strategy interface { Write(*jen.File, Template) error } func NewFileStrategy ¶ func NewFileStrategy(dir string) Strategy func NewWriterStrategy ¶ func NewWriterStrategy(writer io.Writer) Strategy type Template ¶ type Template interface { Path() string Render(data *parser.Interface) *jen.File } Source Files ¶ View all Source files generator.go strategy_file.go strategy_writer.go template.go Directories ¶ Show internal Expand all Path Synopsis template Click to show internal directories. Click to hide internal directories.