parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBeyondPackage

func NewBeyondPackage(path string) (*ast.Package, []string)

NewBeyondPackage return the package and the list of imports

Types

type BeyondParser

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

BeyondParser struct

func New

func New(gopath string, project string) *BeyondParser

New instance a new BeyondParser

func (*BeyondParser) Parse

func (pp *BeyondParser) Parse(path string) map[string]*Package

Parse parse the input

type Package

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

Package struct

func (*Package) Node

func (p *Package) Node() *ast.Package

Node return the node instance

func (*Package) Path

func (p *Package) Path() string

Path return the package path

Jump to

Keyboard shortcuts

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