generate

package
v0.0.0-...-6a4c678 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 27 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]FileWithImports, 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, opts options.Options, paths ...string) error

func UpdateToStdout

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

Types

type FileWithImports

type FileWithImports interface {
	// Name is the name from the package clause of this file
	Name() string
	// FileName is the name of the file
	FileName() string
	// Dir is the directory of the file
	Dir() string
	// Imports are the imports of this file
	Imports() []string

	IsExternal(pkgName string) bool
	IsTest() bool
	IsCmd() bool

	KindType() kinds.Type
}

type GoFile

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

GoFile represents a single Go file in a package

func (*GoFile) Dir

func (f *GoFile) Dir() string

func (*GoFile) FileName

func (f *GoFile) FileName() string

func (*GoFile) Imports

func (f *GoFile) Imports() []string

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

func (*GoFile) KindType

func (f *GoFile) KindType() kinds.Type

func (*GoFile) Name

func (f *GoFile) Name() string

type Proxy

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

type TypeScriptFile

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

TypeScriptFile represents a single TypeScript file in a package

func (*TypeScriptFile) Dir

func (f *TypeScriptFile) Dir() string

func (*TypeScriptFile) FileName

func (f *TypeScriptFile) FileName() string

func (*TypeScriptFile) Imports

func (f *TypeScriptFile) Imports() []string

func (*TypeScriptFile) IsCmd

func (f *TypeScriptFile) IsCmd() bool

func (*TypeScriptFile) IsExternal

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

IsExternal returns whether the test is external

func (*TypeScriptFile) IsTest

func (f *TypeScriptFile) IsTest() bool

func (*TypeScriptFile) KindType

func (f *TypeScriptFile) KindType() kinds.Type

func (*TypeScriptFile) Name

func (f *TypeScriptFile) Name() string

Jump to

Keyboard shortcuts

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