Documentation ¶
Index ¶
- func IsNil(i interface{}) bool
- type TemplateCallTree
- func (c *TemplateCallTree) Fprint(depth int) string
- func (c *TemplateCallTree) IsValid() bool
- func (c *TemplateCallTree) List() *TemplateCallTree
- func (c *TemplateCallTree) String() string
- func (c *TemplateCallTree) Struct() *TemplateCallTreeEntry
- func (c *TemplateCallTree) Validate(pkg *packages.Package, typeInfo types.Type) (*ValidationResult, error)
- type TemplateCallTreeEntry
- type TreeBuilder
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TemplateCallTree ¶
type TemplateCallTree struct {
// contains filtered or unexported fields
}
func NewTemplateCallTree ¶
func NewTemplateCallTree() *TemplateCallTree
func ParseTemplate ¶
func ParseTemplate(template string) (*TemplateCallTree, error)
func (*TemplateCallTree) Fprint ¶
func (c *TemplateCallTree) Fprint(depth int) string
func (*TemplateCallTree) IsValid ¶
func (c *TemplateCallTree) IsValid() bool
func (*TemplateCallTree) List ¶
func (c *TemplateCallTree) List() *TemplateCallTree
func (*TemplateCallTree) String ¶
func (c *TemplateCallTree) String() string
func (*TemplateCallTree) Struct ¶
func (c *TemplateCallTree) Struct() *TemplateCallTreeEntry
func (*TemplateCallTree) Validate ¶
func (c *TemplateCallTree) Validate(pkg *packages.Package, typeInfo types.Type) (*ValidationResult, error)
type TemplateCallTreeEntry ¶
type TemplateCallTreeEntry struct {
// contains filtered or unexported fields
}
func NewTemplateCallTreeEntry ¶
func NewTemplateCallTreeEntry() *TemplateCallTreeEntry
func (*TemplateCallTreeEntry) Fprint ¶
func (c *TemplateCallTreeEntry) Fprint(depth int) string
func (*TemplateCallTreeEntry) IsValid ¶
func (c *TemplateCallTreeEntry) IsValid() bool
type TreeBuilder ¶
type TreeBuilder func(*TemplateCallTree, parse.Node) error
type ValidationResult ¶
type ValidationResult struct {
// contains filtered or unexported fields
}
func NewValidationResult ¶
func NewValidationResult() *ValidationResult
func (*ValidationResult) AddErrorMessage ¶
func (r *ValidationResult) AddErrorMessage(breadCrumb string, message string)
func (*ValidationResult) ErrorMessages ¶
func (r *ValidationResult) ErrorMessages() []string
func (*ValidationResult) IsValid ¶
func (r *ValidationResult) IsValid() bool
Click to show internal directories.
Click to hide internal directories.