Documentation ¶
Index ¶
- func BuildTarget(name, pkgDir, subrepo string) string
- func ImportDir(dir string) (map[string]FileWithImports, error)
- func SubrepoName(module, thirdPartyFolder string) string
- func SubrepoTarget(module, thirdPartyFolder, packageName string) string
- func Update(plzConf *please.Config, opts options.Options, paths ...string) error
- func UpdateToStdout(format string, plzConf *please.Config, opts options.Options, paths ...string) error
- type FileWithImports
- type GoFile
- type Proxy
- type TypeScriptFile
- func (f *TypeScriptFile) Dir() string
- func (f *TypeScriptFile) FileName() string
- func (f *TypeScriptFile) Imports() []string
- func (f *TypeScriptFile) IsCmd() bool
- func (f *TypeScriptFile) IsExternal(pkgName string) bool
- func (f *TypeScriptFile) IsTest() bool
- func (f *TypeScriptFile) KindType() kinds.Type
- func (f *TypeScriptFile) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTarget ¶
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 SubrepoTarget ¶
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) IsExternal ¶
IsExternal returns whether the test is external
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
Click to show internal directories.
Click to hide internal directories.