Documentation
¶
Overview ¶
Package lock reads and writes platformgo.lock: what platformgo has actually applied to a project.
platformgo.yaml says what the project wants; the lock says what it got. The difference between the two is what lets apply remove the files of a module that is no longer declared, so taking a module out never needs manual cleanup.
Index ¶
Constants ¶
View Source
const FileName = "platformgo.lock"
FileName is the lock file in the project root.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diff ¶
type Diff struct {
AddedModules []string
RemovedModules []string
StaleFiles []string // generated before and no longer generated
}
Diff is what changes between two locks.
Click to show internal directories.
Click to hide internal directories.