Skip to content

Commit b405e42

Browse files
authored
Merge pull request #3444 from travis-ci/kw-go
Update go.md
2 parents 3cf77a5 + a73f72a commit b405e42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

user/languages/go.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ language: go
2525
```
2626
{: data-file=".travis.yml"}
2727
28-
Note that, in order to choose e.g Go 1.18, you must use `go: "1.18.0"` (full version, not
29-
`go: 1.18` (shorter one)). Using a shorter one results in a missing GO package.
3028
</aside>
3129
3230
{{ site.data.snippets.linux_windows_note }}
@@ -37,16 +35,18 @@ configuration](/user/customizing-the-build/) guides first.
3735
3836
## Specify a Go version
3937
40-
You can use any tagged version of Go from https://go.dev/dl/ - you need to specify
41-
the version you want precisely, like "1.23.2" and similar.
38+
You can use any tagged version of Go from https://go.dev/dl/, a version with `x` in place of the minor or patch level to use the latest for a given major or minor version, or use `master` or `stable` to get the latest version from source.
4239

4340

4441
```yaml
4542
language: go
4643
4744
go:
45+
- "1.18"
4846
- "1.22.4"
49-
- "1.18.1"
47+
- "1.18.x"
48+
- master
49+
- stable
5050
```
5151
{: data-file=".travis.yml"}
5252

0 commit comments

Comments
 (0)