Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateParseTree ¶
func ResolveCommentTypes ¶
func ResolveCommentTypes(comments []TypeComment, resolved func(comment TypeComment, resolvedType types.Type, err error) error) error
Types ¶
type TypeComment ¶
type TypeComment struct { Package string Identifier string Filepath string CommentNode *parse.CommentNode Tree *parse.Tree }
TypeComment represents a gotype comment in a template. These comments look something like this: {{- /*gotype: example.com/package-name.TypeName*/ -}}
func FindTypeComments ¶
func FindTypeComments(filePath string, tree *parse.Tree) ([]TypeComment, error)
Click to show internal directories.
Click to hide internal directories.