inspector

package
v0.0.0-...-7552ca7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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 File

type File struct {
	Package   string
	BuildTags []string
	Imports   []*Import
}

type Import

type Import struct {
	Location Location
	Path     string
}

type Inspector

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

func New

func New(root string) (*Inspector, error)

func (*Inspector) Inspect

func (ins *Inspector) Inspect(filename string) (*File, error)

type Location

type Location int
const (
	GoRoot Location = iota + 1
	GoPath
	Project
	Vendor
)

func (Location) String

func (l Location) String() string

func (*Location) UnmarshalJSON

func (l *Location) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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