Documentation
¶
Index ¶
- func Check(config CheckConfiguration, wd string, log *log.Logger, fileSet *token.FileSet, ...) error
- type CheckConfiguration
- type Definition
- type DefinitionsConfiguration
- type Function
- type NamedReferences
- type ReceiverMethod
- type Routes
- type TemplateCallers
- type TemplateCallersConfiguration
- type TemplateCalls
- type TemplateCallsConfiguration
- type TemplateExecution
- type TemplateReference
- type TemplateReferenceKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckConfiguration ¶
type Definition ¶
type NamedReferences ¶
type NamedReferences struct {
Name string
Imports *astgen.TypeFormatter `json:",omitempty"`
References []TemplateReference
}
func NewNamedReferences ¶
func NewNamedReferences(pkgPath, name string, refs []TemplateReference) NamedReferences
type ReceiverMethod ¶
type Routes ¶
type Routes struct {
Functions []Function
Definitions []Definition
Receiver *types.Named
ReceiverMethods []ReceiverMethod
}
type TemplateCallers ¶
type TemplateCallers struct {
Templates []NamedReferences
}
func NewTemplateCallers ¶
func NewTemplateCallers(config TemplateCallersConfiguration, fileSet *token.FileSet, pkg *packages.Package, global *check.Global, ts *template.Template) (*TemplateCallers, error)
NewTemplateCallers shows where templates are referenced
type TemplateCalls ¶
type TemplateCalls struct {
Templates []NamedReferences
}
func NewTemplateCalls ¶
func NewTemplateCalls(config TemplateCallsConfiguration, pkg *packages.Package, global *check.Global, ts *template.Template) (*TemplateCalls, error)
NewTemplateCalls shows what templates use (other templates they call)
type TemplateExecution ¶
type TemplateReference ¶
type TemplateReference struct {
Name string
Kind TemplateReferenceKind
Position token.Position
Data string `json:",omitempty"`
// contains filtered or unexported fields
}
type TemplateReferenceKind ¶
type TemplateReferenceKind int
const ( ParseTemplateNode TemplateReferenceKind = 1 + iota ExecuteTemplateNode )
func (TemplateReferenceKind) MarshalText ¶
func (k TemplateReferenceKind) MarshalText() (text []byte, err error)
func (TemplateReferenceKind) String ¶
func (k TemplateReferenceKind) String() string
Click to show internal directories.
Click to hide internal directories.