path

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModInfo

func ModInfo() *module

go list -mod=readonly -m -json

{
  "Path": "github.com/toshi0607/jctl",
  "Main": true,
  "Dir": "/Users/toshi0607/dev/go/src/github.com/toshi0607/jctl",
  "GoMod": "/Users/toshi0607/dev/go/src/github.com/toshi0607/jctl/go.mod",
  "GoVersion": "1.13"
}

Types

type Builder

type Builder interface {
	Build() (string, error)
	ImportPackage(path string) (*build.Package, error)
}

func NewBuilder

func NewBuilder(path string) Builder

Jump to

Keyboard shortcuts

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