Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer interface {
ScanFuncDecl(file *ast.File, targetAnnotation string) PackageInfo
ScanMethodByClass(object interface{}, targetAnnotation string) PackageInfo
}
func NewAnalyzer ¶
func NewAnalyzer() Analyzer
type FuncInfo ¶
func (*FuncInfo) SetAnnotation ¶
type MethodInfo ¶
type MethodInfo struct {
PkgName string
RecvName string
MethodName string
// contains filtered or unexported fields
}
func (MethodInfo) HasAnnotation ¶
func (m MethodInfo) HasAnnotation(methodLocation string) bool
func (*MethodInfo) SetAnnotation ¶
func (m *MethodInfo) SetAnnotation(annotation string)
type ObjectAnalyzer ¶
var (
SingletonObjectAnalyzer ObjectAnalyzer
)
func GetSingletonObjectAnalyzerInstance ¶
func GetSingletonObjectAnalyzerInstance() ObjectAnalyzer
type PackageInfo ¶
Click to show internal directories.
Click to hide internal directories.