gopackages

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound        = xerrors.New("not found")
	PkgNameNotFound = xerrors.New("package name was not found")
)

Functions

func GetGoModPath

func GetGoModPath(in string) (string, error)

GetGoModPath - Search for go.mod by breadth-first-search directly under the Git repository

func GetGoModule

func GetGoModule(goMod string) (string, error)

GetGoModule - Get the Go root package name from go.mod

Types

type Module

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

func NewModule

func NewModule(in string) (*Module, error)

func (*Module) GetImportPath

func (m *Module) GetImportPath(path string) (string, error)

Jump to

Keyboard shortcuts

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