Documentation
¶
Overview ¶
Package upgrade brings projects generated by older GOT versions up to date.
Steps detect their need from the project files rather than from a recorded version, so they also work for projects created before got-project.json existed. A step only rewrites code that still matches what GOT generated; when a developer has changed it, the step reports a manual action instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
ID string `json:"id"`
Description string `json:"description"`
Status Status `json:"status"`
Detail string `json:"detail,omitempty"`
Changes map[string][]byte `json:"-"`
Files []string `json:"files,omitempty"`
}
Result describes one step for one project. Changes maps project-relative paths to their complete new content.
func PlanWorkspace ¶ added in v1.1.1
PlanWorkspace evaluates workspace-level files. In workspace mode the go.work toolchain directive, not each go.mod, selects the toolchain.
Click to show internal directories.
Click to hide internal directories.