Documentation ¶
Index ¶
- func ExecuteTemplate(content string, data interface{}) (string, error)
- func Exists(path string) bool
- func WriteFile(file *TextFile, overwrite bool) error
- func WriteFiles(files []TextFile, overwrite bool) error
- type TextFile
- 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 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.