goparser

package
v0.0.4-beta Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Path       string
	Type       string
	LineNumber int
	Resolved   string
	IsLocal    bool
}

type Entity

type Entity struct {
	Name        string
	Type        string
	Kind        string
	Signature   string
	StartLine   int
	EndLine     int
	ColumnStart int
	ColumnEnd   int
	Docs        string
	Parent      string
	Visibility  string
	Scope       string
	Language    string
	Attributes  map[string]interface{}
}

Parse result structures (duplicated to avoid circular import)

type GoParser

type GoParser struct{}

GoParser uses Go's stdlib AST parser for accurate parsing

func (*GoParser) Language

func (p *GoParser) Language() string

func (*GoParser) Parse

func (p *GoParser) Parse(filePath string, content string) (*ParseResult, error)

type ParseResult

type ParseResult struct {
	FilePath     string
	Language     string
	Entities     []*Entity
	Dependencies []*Dependency
}

Jump to

Keyboard shortcuts

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