astparser

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	PackageName     string
	InterfaceName   string
	Methods         []Method
	RequiredPackage []string
}

type Method

type Method struct {
	Name    string
	Args    []TypedVar
	Returns []TypedVar
}

type PackageInterfaces

type PackageInterfaces struct {
	PackageName string
	Interfaces  []Interface
	Imports     map[string]string
}

func ParseInterfaceFromFile

func ParseInterfaceFromFile(path string) (*PackageInterfaces, error)

func (*PackageInterfaces) ResolveImport

func (i *PackageInterfaces) ResolveImport(name string) string

type TypedVar

type TypedVar struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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