Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(file *ast.File, definitions *Environment)
Types ¶
type Environment ¶
type Environment struct {
Packages []*Package
}
type Interface ¶
type Interface struct {
Methods []MethodDescriptor
Comment string
// contains filtered or unexported fields
}
func NewInterface ¶
type MethodArgument ¶
type MethodDescriptor ¶
type MethodDescriptor struct {
Comment string
Recv []MethodArgument
Arguments []MethodArgument
Result []MethodResult
Tag Tag
// contains filtered or unexported fields
}
func NewMethodDescriptor ¶
func NewMethodDescriptor(pkg *Package, name string) *MethodDescriptor
func (*MethodDescriptor) Name ¶
func (method *MethodDescriptor) Name() string
func (*MethodDescriptor) Package ¶
func (method *MethodDescriptor) Package() *Package
type MethodResult ¶
type RefType ¶
func NewRefType ¶
type Struct ¶
type Struct struct {
Comment string
Fields []*Field
Methods []*StructMethod
Interfaces []*Interface
// contains filtered or unexported fields
}
type StructMethod ¶
type StructMethod struct {
Descriptor *MethodDescriptor
}
Click to show internal directories.
Click to hide internal directories.