Created
April 30, 2026 05:48
-
-
Save mochaaP/c476591f82ef92a3bf885769d9710ac6 to your computer and use it in GitHub Desktop.
anygo - runs the go command from version specified by argv[0]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2025 The Go Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| // The anygo command runs the go command from version specified by argv[0]. | |
| // | |
| // To install, run: | |
| // | |
| // $ go install . | |
| // $ ln -s anygo go1.25.3 | |
| // $ go1.25.3 download | |
| // | |
| // And then use the go1.25.3 command as if it were your normal go | |
| // command. | |
| // | |
| // See the release notes at https://tip.golang.org/doc/go1.25. | |
| // | |
| // File bugs at https://go.dev/issue/new. | |
| package main | |
| import ( | |
| "os" | |
| "golang.org/dl/internal/version" | |
| ) | |
| func main() { | |
| version.Run(os.Args[0]) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment