importer

package
v0.0.0-...-0dd21e6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProtoPath = ""

Functions

func RangePackage

func RangePackage(f func(pkg *File))

Types

type Error

type Error struct {
	File string
	Pos  scanner.Position
	Err  error
}

func (*Error) Error

func (e *Error) Error() string

type File

type File struct {
	Path  string
	Proto *proto.Proto

	Version  int
	Universe *types.Scope
	Package  *types.Package
	Imports  []*types.Package
	Error    func(err error)
	// contains filtered or unexported fields
}

func Import

func Import(path string) (*File, error)

func (*File) Resolve

func (file *File) Resolve()

Jump to

Keyboard shortcuts

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