Go · Command
go mod init
go mod init creates a go.mod file and sets the module path. The file describes the module and its dependency requirements.
Last updated
Syntax
go mod init module-pathIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
go mod tidygo getgo mod editmodule directivego directive