Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeEllipsis ¶
DeEllipsis replaces a ... with the according text.
func Format ¶
Format tries to apply the gofmt rules to the given text. If it fails the error is returned and the string contains the text with line enumeration.
func MakeIdentifier ¶
MakeIdentifier creates a public name out of the given string. If it just contains rubbish, at worst the empty name _ is returned. - and _ are turned into upper case letters if possible.
func WithLineNumbers ¶
WithLineNumbers puts a 1 based line number to the left and returns the text.
Types ¶
type RFile ¶
type RFile struct {
// contains filtered or unexported fields
}
func (*RFile) AddImport ¶
func (r *RFile) AddImport(pkgName wdl.Identifier, path wdl.PkgImportQualifier)
func (*RFile) Use ¶
func (r *RFile) Use(rtype *wdl.ResolvedType) *wdl.ResolvedType
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer provides a go renderer.
func NewRenderer ¶
NewRenderer creates a new Renderer instance.
Click to show internal directories.
Click to hide internal directories.