|
||
---|---|---|
.. | ||
README.md | ||
comment.go | ||
field.go | ||
file.go | ||
function.go | ||
name.go | ||
package.go | ||
package_test.go | ||
struct.go | ||
type.go |
README.md
Astgo
目录
列出了该 package
下所有的函数,可通过目录进行快捷跳转 ❤️
展开 / 折叠目录
包级函数定义
函数 | 描述 |
---|---|
NewPackage | 暂无描述... |
结构体定义
结构体 | 描述 |
---|---|
Comment | 暂无描述... |
Field | 暂无描述... |
File | 暂无描述... |
Function | 暂无描述... |
Package | 暂无描述... |
Struct | 暂无描述... |
Type | 暂无描述... |
func NewPackage(dir string) *Package, error
Comment
type Comment struct {
Comments []string
Clear []string
}
Field
type Field struct {
Anonymous bool
Name string
Type *Type
Comments *Comment
}
File
type File struct {
af *ast.File
owner *Package
FilePath string
Structs []*Struct
Functions []*Function
Comment *Comment
}
func (*File) Package() string
Function
type Function struct {
Name string
Internal bool
Generic []*Field
Params []*Field
Results []*Field
Comments *Comment
Struct *Field
IsExample bool
IsTest bool
IsBenchmark bool
Test bool
}
Package
type Package struct {
Dir string
Name string
Dirs []string
Files []*File
}
func (*Package) StructFunc(name string) []*Function
func (*Package) PackageFunc() []*Function
func (*Package) Structs() []*Struct
func (*Package) FileComments() *Comment
Struct
type Struct struct {
Name string
Internal bool
Comments *Comment
Generic []*Field
Fields []*Field
Test bool
}
Type
type Type struct {
expr ast.Expr
Sign string
IsPointer bool
Name string
}