goParser

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFunction

func FindFunction(filePath, funcName string) (*convention.FuncDecl, []convention.ParaMeta, error)

FindFunction 接收Go源码路径和函数名,返回对应的FuncDecl结构和参数元信息

func GetCode

func GetCode(filePath string) (string, error)

GetCode 读取Go源文件,返回除去package和import语句之外的所有内容

func GetImports

func GetImports(filename string, asSource ...bool) ([]string, error)

GetImports 提取文件中的import列表

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL