Documentation ¶
Index ¶
- func ExecuteTemplate(content string, data interface{}) (string, error)
- func Exists(path string) bool
- func WriteFile(file *CodeFile, overwrite bool) error
- func WriteFiles(files []CodeFile, overwrite bool) error
- type CodeFile
- type Sources
- type Writer
- func (writer *Writer) EmptyLine()
- func (writer *Writer) Indent()
- func (writer *Writer) IndentWith(size int)
- func (writer *Writer) Indented() *Writer
- func (writer *Writer) IndentedWith(size int) *Writer
- func (writer *Writer) Line(format string, args ...interface{})
- func (writer *Writer) String() string
- func (writer *Writer) Unindent()
- func (writer *Writer) UnindentWith(size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTemplate ¶
func WriteFiles ¶
Types ¶
type Sources ¶
func NewSources ¶
func NewSources() *Sources
func (*Sources) AddGenerated ¶
func (*Sources) AddGeneratedAll ¶
func (*Sources) AddScaffolded ¶
func (*Sources) AddScaffoldedAll ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) IndentWith ¶
func (*Writer) IndentedWith ¶
func (*Writer) UnindentWith ¶
Click to show internal directories.
Click to hide internal directories.