parser

package
v0.0.0-...-03c2bed Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package parser provides document binding extraction and code parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBindings

func ExtractBindings(filePath string) ([]types.Binding, error)

ExtractBindings 从 Markdown 文件中提取绑定关系

Types

type GoParser

type GoParser struct {
	// contains filtered or unexported fields
}

GoParser Go 代码解析器

func NewGoParser

func NewGoParser() *GoParser

NewGoParser 创建 Go 解析器

func (*GoParser) ExtractSymbol

func (p *GoParser) ExtractSymbol(filePath string, symbolName string, symbolType types.BindingType) (string, int, error)

ExtractSymbol 提取指定符号的代码

Jump to

Keyboard shortcuts

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