Go · Command
go mod tidy
go mod tidy synchronizes a module's dependency files with the packages used by the module and its tests. It adds missing requirements, removes unused ones, and records needed checksums.
Last updated
Syntax
go mod tidyIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
go.modgo.sumgo mod initgo buildgo testgo list -m all