Skip to content

Go

How json2vars-setter handles Go, and how the example workflow provisions it.

json2vars-setter integration

Item Value
Matrix JSON key versions.go
Action output versions_go
Dynamic-update strategy input go-strategy (stable / latest / both)
Version source see Version Sources

Supported runners

The example matrix runs on Ubuntu / Windows / macOS:

ubuntu-latest, windows-latest, macos-latest

Any GitHub-hosted runner the setup action supports also works - the OS list is just the os array in your matrix JSON.

Supported versions

Example matrix (what the example workflow runs):

{
  "versions": {
    "go": [
      "1.23.0",
      "1.23.1",
      "1.23.2",
      "1.23.3",
      "1.23.4",
      "1.23.5",
      "1.23.6",
      "1.24.0"
    ]
  }
}

Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):

Field Version
stable 1.25.11
latest 1.26.4

Cache last updated: 2026-06-24T12:28:40.260892.

Setup action (example workflow)

go_test.yml provisions Go with the matrix value json2vars-setter produced:

1
2
3
4
5
- name: Set up Go
  uses: actions/setup-go@v7.0.0
  with:
    go-version: ${{ matrix.go-version }}
    cache: false

References