golang

package
v0.0.0-...-467d0ed Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModRoot

func ModRoot(cwd string) (string, error)

func ModWdRoot

func ModWdRoot() (string, error)

ModWdRoot walks up from current working dir to find the enclosing go module.

func ModulePath

func ModulePath(dir string) (string, error)

ModulePath returns whatever the mod path is.

func Parse

func Parse(dir string, onlyImports ...string) (*api.Module, error)

func PkgDirs

func PkgDirs(root string) ([]string, error)

PkgDirs returns all directories containing any go file.

Types

type Package

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

Jump to

Keyboard shortcuts

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