generate

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTarget

func BuildTarget(name, pkgDir, subrepo string) string

func ImportDir

func ImportDir(dir string) (map[string]*GoFile, error)

ImportDir does _some_ of what the go/build ImportDir does but is more permissive.

func SubrepoName

func SubrepoName(module, thirdPartyFolder string) string

func SubrepoTarget

func SubrepoTarget(module, thirdPartyFolder, packageName string) string

func Update

func Update(plzConf *please.Config, paths ...string) error

func UpdateToStdout added in v1.7.0

func UpdateToStdout(format string, plzConf *please.Config, paths ...string) error

Types

type GoFile

type GoFile struct {
	// Name is the name from the package clause of this file
	Name, FileName string
	// Imports are the imports of this file
	Imports []string
}

GoFile represents a single Go file in a package

func (*GoFile) IsCmd

func (f *GoFile) IsCmd() bool

func (*GoFile) IsExternal

func (f *GoFile) IsExternal(pkgName string) bool

IsExternal returns whether the test is external

func (*GoFile) IsTest

func (f *GoFile) IsTest() bool

type Proxy

type Proxy interface {
	ResolveModuleForPackage(pattern string) (*proxy.Module, error)
	ResolveDeps(mods, newMods []*proxy.Module) ([]*proxy.Module, error)
}

Jump to

Keyboard shortcuts

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