srcparser

package
v0.0.0-...-1568143 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileParser

type FileParser struct {
	PackageName string
	// contains filtered or unexported fields
}

func NewFileParser

func NewFileParser(filename string) *FileParser

func (*FileParser) GetInterfaceList

func (f *FileParser) GetInterfaceList() []*InterfaceSpec

func (*FileParser) Parse

func (f *FileParser) Parse() error

type FuncSpec

type FuncSpec struct {
	Name        string
	PackageName string

	ImportList []string
	ArgList    []*VarSpec
	ResultList []*VarSpec
	// contains filtered or unexported fields
}

func (*FuncSpec) Parse

func (f *FuncSpec) Parse() error

type ImportSpec

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

func (*ImportSpec) GetName

func (i *ImportSpec) GetName() string

func (*ImportSpec) GetPath

func (i *ImportSpec) GetPath() string

type InterfaceSpec

type InterfaceSpec struct {
	PackageName string
	Name        string

	FuncList []*FuncSpec

	ImportList map[string]*ImportSpec
	// contains filtered or unexported fields
}

func (*InterfaceSpec) Parse

func (i *InterfaceSpec) Parse() error

type VarSpec

type VarSpec struct {
	Name      string
	Package   string
	IsPointer bool
}

func NewVarSpec

func NewVarSpec(pkg, name string, isPointer bool) *VarSpec

func (VarSpec) FullName

func (v VarSpec) FullName() string

func (VarSpec) Header

func (v VarSpec) Header() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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