analysis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGoModNotFound = errors.New("go mod not found")
View Source
var ErrGoPkgNotFound = errors.New("GOPATH not found")

Functions

func CurrentVendorRootPth

func CurrentVendorRootPth(rootPth string) (string, error)

Types

type Analyzer

type Analyzer interface {
	Analyze() ([]OutputEntry, error)
	Print() []byte
}

func New

func New(pth string, printFunc func(items ...OutputEntry) Printer) Analyzer

type ExtractFunc

type ExtractFunc func(t string) (tagDetail, bool)

type Option

type Option func(*analysis)

type OutputEntry

type OutputEntry struct {
	PackageName  string
	EntryName    string
	DefaultValue string
}

func (OutputEntry) String

func (o OutputEntry) String() string

type Printer

type Printer interface {
	Print() []byte
}

Jump to

Keyboard shortcuts

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