vRp.CD2g_test/utils/generator/astgo
kercylan 83beeb43ce docs: 优化项目文档 2024-01-14 18:33:01 +08:00
..
README.md docs: 优化项目文档 2024-01-14 18:33:01 +08:00
comment.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
field.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
file.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
function.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
name.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
package.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
package_test.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
struct.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00
type.go docs: 优化项目文档 2024-01-14 18:33:01 +08:00

README.md

Astgo

Go doc

目录

列出了该 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
}