Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileStructure ¶
type FileStructure struct {
Language string `json:"language"`
FilePath string `json:"file_path"`
Package string `json:"package,omitempty"`
Functions []*Symbol `json:"functions"`
Classes []*Symbol `json:"classes"`
Imports []string `json:"imports"`
Errors []string `json:"errors,omitempty"`
}
FileStructure 表示文件结构
type Symbol ¶
type Symbol struct {
Name string `json:"name"`
Type string `json:"type"` // "function", "method", "struct", "interface", "type"
Line int `json:"line"`
Column int `json:"column"`
EndLine int `json:"end_line"`
EndColumn int `json:"end_column"`
Signature string `json:"signature,omitempty"` // 函数签名
Receiver string `json:"receiver,omitempty"` // 方法接收者
}
Symbol 表示一个代码符号(函数/类)
Source Files
¶
- parse.go
Click to show internal directories.
Click to hide internal directories.