Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResolveRequest ¶
type ResolveRequest struct {
Dir string `json:"dir"` // The directory to resolve from (usually where `go.mod` is)
Env []string `json:"env"` // Environment variables to use during resolution
Pattern string `json:"pattern"` // Package pattern to resolve
TempDir string `json:"tmpdir,omitempty"` // A temporary directory to use for Go build artifacts
// contains filtered or unexported fields
}
func NewResolveRequest ¶
func NewResolveRequest(dir string, pattern string) ResolveRequest
func (ResolveRequest) ResponseIs ¶ added in v1.0.3
func (ResolveRequest) ResponseIs(ResolveResponse)
func (ResolveRequest) Subject ¶
func (ResolveRequest) Subject() string
type ResolveResponse ¶
ResolveResponse is a map of package import path to their respective export file, if one is found. Users should handle possibly missing export files as is relevant to their use-case.
Click to show internal directories.
Click to hide internal directories.