Documentation
¶
Index ¶
- Variables
- type CodeGenFile
- func (c *CodeGenFile) AddImport(pkgName, identifier string)
- func (c *CodeGenFile) AppendCode(code string)
- func (c *CodeGenFile) AppendToHeader(str string)
- func (c CodeGenFile) NewComment(comment string) string
- func (c CodeGenFile) NewCommentWithIndent(comment string, indent int) string
- func (c CodeGenFile) Render() string
- func (c CodeGenFile) RenderImports() string
- type CodeGenLanguage
Constants ¶
This section is empty.
Variables ¶
View Source
var File = file{}
View Source
var Languages = codeGenLanguages{}
Functions ¶
This section is empty.
Types ¶
type CodeGenFile ¶
type CodeGenFile struct {
// contains filtered or unexported fields
}
func (*CodeGenFile) AddImport ¶
func (c *CodeGenFile) AddImport(pkgName, identifier string)
func (*CodeGenFile) AppendCode ¶
func (c *CodeGenFile) AppendCode(code string)
func (*CodeGenFile) AppendToHeader ¶
func (c *CodeGenFile) AppendToHeader(str string)
func (CodeGenFile) NewComment ¶
func (c CodeGenFile) NewComment(comment string) string
func (CodeGenFile) NewCommentWithIndent ¶
func (c CodeGenFile) NewCommentWithIndent(comment string, indent int) string
func (CodeGenFile) Render ¶
func (c CodeGenFile) Render() string
func (CodeGenFile) RenderImports ¶
func (c CodeGenFile) RenderImports() string
Click to show internal directories.
Click to hide internal directories.