fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.9k stars 1.45k forks source link

Update syntax for version in Go mod file directive #3634

Closed matthewhughes934 closed 5 months ago

matthewhughes934 commented 5 months ago

Since go1.21 this directive supports the same version format as the toolchain directive[1] (though it doesn't support any suffixes). Specifically it supports formats such as:

Note: patch versions do not have release candidates (e.g. 1.21.1rc2 is not valid)

[1] https://go.dev/ref/mod#go-mod-file-go