Given the following go.mod file:
module foo
go 1.12
require (
github.com/bar/baz v1.0.0
github.com/rat/cat v1.0.0
)
What does the go 1.12
indicate? Does it prevent compiling the foo
module against any other version of Go? Or is it simply an indicator of the foo
's recommended/required Go version? Is this a directive that we should update whenever a new version of go is released (every 6 months)?