repo_id
stringclasses 927
values | file_path
stringlengths 99
214
| content
stringlengths 2
4.15M
|
|---|---|---|
go1.21.0
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.0/main.go
|
// Copyright 2023 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 go1.21.0 command runs the go command from Go 1.21.0.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.0@latest
// $ go1.21.0 download
//
// And then use the go1.21.0 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/go1.21.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.21.0")
}
|
go1.13.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.4/main.go
|
// Copyright 2019 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 go1.13.4 command runs the go command from Go 1.13.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.4@latest
// $ go1.13.4 download
//
// And then use the go1.13.4 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.4")
}
|
go1.13.6
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.6/main.go
|
// Copyright 2020 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 go1.13.6 command runs the go command from Go 1.13.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.6@latest
// $ go1.13.6 download
//
// And then use the go1.13.6 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.6")
}
|
go1.18rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18rc1/main.go
|
// Copyright 2022 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 go1.18rc1 command runs the go command from Go 1.18rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18rc1@latest
// $ go1.18rc1 download
//
// And then use the go1.18rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.18.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18rc1")
}
|
go1.19.6
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.6/main.go
|
// Copyright 2023 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 go1.19.6 command runs the go command from Go 1.19.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.6@latest
// $ go1.19.6 download
//
// And then use the go1.19.6 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.6")
}
|
go1.16.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.2/main.go
|
// Copyright 2021 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 go1.16.2 command runs the go command from Go 1.16.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.2@latest
// $ go1.16.2 download
//
// And then use the go1.16.2 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.16.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16.2")
}
|
go1.8.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8.4/main.go
|
// Copyright 2018 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 go1.8.4 command runs the go command from Go 1.8.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8.4@latest
// $ go1.8.4 download
//
// And then use the go1.8.4 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.8.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8.4")
}
|
go1.12.16
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.16/main.go
|
// Copyright 2020 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 go1.12.16 command runs the go command from Go 1.12.16.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.16@latest
// $ go1.12.16 download
//
// And then use the go1.12.16 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.16")
}
|
go1.12.1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.1/main.go
|
// Copyright 2019 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 go1.12.1 command runs the go command from Go 1.12.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.1@latest
// $ go1.12.1 download
//
// And then use the go1.12.1 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.1")
}
|
go1.19.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.3/main.go
|
// Copyright 2022 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 go1.19.3 command runs the go command from Go 1.19.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.3@latest
// $ go1.19.3 download
//
// And then use the go1.19.3 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.3")
}
|
go1.13
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13/main.go
|
// Copyright 2019 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 go1.13 command runs the go command from Go 1.13.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13@latest
// $ go1.13 download
//
// And then use the go1.13 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/go1.13
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13")
}
|
go1.19
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19/main.go
|
// Copyright 2022 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 go1.19 command runs the go command from Go 1.19.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19@latest
// $ go1.19 download
//
// And then use the go1.19 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/go1.19.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19")
}
|
go1.14beta1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14beta1/main.go
|
// Copyright 2019 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 go1.14beta1 command runs the go command from Go 1.14beta1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.14beta1@latest
// $ go1.14beta1 download
//
// And then use the go1.14beta1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.14
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.14beta1")
}
|
gotip
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/gotip/main.go
|
// Copyright 2018 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 gotip command compiles and runs the go command from the development tree.
//
// To install, run:
//
// $ go install golang.org/dl/gotip@latest
// $ gotip download
//
// And then use the gotip command as if it were your normal go command.
//
// To update, run "gotip download" again. This will always download the main branch.
// To download an alternative branch, run "gotip download BRANCH".
// To download a specific CL, run "gotip download NUMBER".
package main
import (
"golang.org/dl/internal/version"
)
func main() {
version.RunTip()
}
|
go1.8beta2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8beta2/main.go
|
// Copyright 2018 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 go1.8beta2 command runs the go command from Go 1.8beta2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8beta2@latest
// $ go1.8beta2 download
//
// And then use the go1.8beta2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.8
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8beta2")
}
|
go1.10.7
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.7/main.go
|
// Copyright 2018 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 go1.10.7 command runs the go command from Go 1.10.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10.7@latest
// $ go1.10.7 download
//
// And then use the go1.10.7 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.10.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10.7")
}
|
go1.14.5
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14.5/main.go
|
// Copyright 2020 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 go1.14.5 command runs the go command from Go 1.14.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.14.5@latest
// $ go1.14.5 download
//
// And then use the go1.14.5 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.14.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.14.5")
}
|
go1.11.1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11.1/main.go
|
// Copyright 2018 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 go1.11.1 command runs the go command from Go 1.11.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11.1@latest
// $ go1.11.1 download
//
// And then use the go1.11.1 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.11.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.11.1")
}
|
go1.10beta2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10beta2/main.go
|
// Copyright 2018 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 go1.10beta2 command runs the go command from Go 1.10beta2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10beta2@latest
// $ go1.10beta2 download
//
// And then use the go1.10beta2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.10
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10beta2")
}
|
go1.11
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11/main.go
|
// Copyright 2018 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 go1.11 command runs the go command from Go 1.11.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11@latest
// $ go1.11 download
//
// And then use the go1.11 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/go1.11
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.11")
}
|
go1.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12/main.go
|
// Copyright 2019 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 go1.12 command runs the go command from Go 1.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12@latest
// $ go1.12 download
//
// And then use the go1.12 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/go1.12
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12")
}
|
go1.22.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.22.2/main.go
|
// Copyright 2024 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 go1.22.2 command runs the go command from Go 1.22.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.22.2@latest
// $ go1.22.2 download
//
// And then use the go1.22.2 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.22.2.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.22.2")
}
|
go1.15rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15rc2/main.go
|
// Copyright 2020 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 go1.15rc2 command runs the go command from Go 1.15rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15rc2@latest
// $ go1.15rc2 download
//
// And then use the go1.15rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.15
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15rc2")
}
|
go1.18.10
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.10/main.go
|
// Copyright 2023 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 go1.18.10 command runs the go command from Go 1.18.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.10@latest
// $ go1.18.10 download
//
// And then use the go1.18.10 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.10")
}
|
go1.21rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21rc2/main.go
|
// Copyright 2023 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 go1.21rc2 command runs the go command from Go 1.21rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21rc2@latest
// $ go1.21rc2 download
//
// And then use the go1.21rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.21.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.21rc2")
}
|
go1.18.1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.1/main.go
|
// Copyright 2022 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 go1.18.1 command runs the go command from Go 1.18.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.1@latest
// $ go1.18.1 download
//
// And then use the go1.18.1 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.1")
}
|
go1.8rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8rc2/main.go
|
// Copyright 2018 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 go1.8rc2 command runs the go command from Go 1.8rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8rc2@latest
// $ go1.8rc2 download
//
// And then use the go1.8rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.8
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8rc2")
}
|
go1.15.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.2/main.go
|
// Copyright 2020 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 go1.15.2 command runs the go command from Go 1.15.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.2@latest
// $ go1.15.2 download
//
// And then use the go1.15.2 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.15.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15.2")
}
|
go1.15.5
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.5/main.go
|
// Copyright 2020 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 go1.15.5 command runs the go command from Go 1.15.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.5@latest
// $ go1.15.5 download
//
// And then use the go1.15.5 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.15.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15.5")
}
|
go1.12.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.3/main.go
|
// Copyright 2019 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 go1.12.3 command runs the go command from Go 1.12.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.3@latest
// $ go1.12.3 download
//
// And then use the go1.12.3 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.3")
}
|
go1.10
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10/main.go
|
// Copyright 2018 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 go1.10 command runs the go command from Go 1.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10@latest
// $ go1.10 download
//
// And then use the go1.10 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/go1.10
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10")
}
|
go1.13.14
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.14/main.go
|
// Copyright 2020 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 go1.13.14 command runs the go command from Go 1.13.14.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.14@latest
// $ go1.13.14 download
//
// And then use the go1.13.14 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.14")
}
|
go1.12.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.4/main.go
|
// Copyright 2019 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 go1.12.4 command runs the go command from Go 1.12.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.4@latest
// $ go1.12.4 download
//
// And then use the go1.12.4 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.4")
}
|
go1.12.5
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.5/main.go
|
// Copyright 2019 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 go1.12.5 command runs the go command from Go 1.12.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.5@latest
// $ go1.12.5 download
//
// And then use the go1.12.5 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.5")
}
|
go1.13.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.12/main.go
|
// Copyright 2020 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 go1.13.12 command runs the go command from Go 1.13.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.12@latest
// $ go1.13.12 download
//
// And then use the go1.13.12 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.12")
}
|
go1.20rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20rc2/main.go
|
// Copyright 2023 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 go1.20rc2 command runs the go command from Go 1.20rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20rc2@latest
// $ go1.20rc2 download
//
// And then use the go1.20rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.20.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20rc2")
}
|
go1.14.15
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14.15/main.go
|
// Copyright 2021 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 go1.14.15 command runs the go command from Go 1.14.15.
//
// To install, run:
//
// $ go install golang.org/dl/go1.14.15@latest
// $ go1.14.15 download
//
// And then use the go1.14.15 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.14.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.14.15")
}
|
go1.19.1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.1/main.go
|
// Copyright 2022 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 go1.19.1 command runs the go command from Go 1.19.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.1@latest
// $ go1.19.1 download
//
// And then use the go1.19.1 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.1")
}
|
go1.11.11
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11.11/main.go
|
// Copyright 2019 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 go1.11.11 command runs the go command from Go 1.11.11.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11.11@latest
// $ go1.11.11 download
//
// And then use the go1.11.11 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.11.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.11.11")
}
|
go1.16.11
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.11/main.go
|
// Copyright 2021 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 go1.16.11 command runs the go command from Go 1.16.11.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.11@latest
// $ go1.16.11 download
//
// And then use the go1.16.11 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.16.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16.11")
}
|
version
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/internal/version/version.go
|
// Copyright 2016 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 version package permits running a specific version of Go.
package version
import (
"archive/tar"
"archive/zip"
"compress/gzip"
"crypto/sha256"
"errors"
"fmt"
"io"
"log"
"net/http"
"os"
"os/exec"
"os/signal"
"os/user"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"
)
func init() {
http.DefaultTransport = &userAgentTransport{http.DefaultTransport}
}
// Run runs the "go" tool of the provided Go version.
func Run(version string) {
log.SetFlags(0)
root, err := goroot(version)
if err != nil {
log.Fatalf("%s: %v", version, err)
}
if len(os.Args) == 2 && os.Args[1] == "download" {
if err := install(root, version); err != nil {
log.Fatalf("%s: download failed: %v", version, err)
}
os.Exit(0)
}
if _, err := os.Stat(filepath.Join(root, unpackedOkay)); err != nil {
log.Fatalf("%s: not downloaded. Run '%s download' to install to %v", version, version, root)
}
runGo(root)
}
func runGo(root string) {
gobin := filepath.Join(root, "bin", "go"+exe())
cmd := exec.Command(gobin, os.Args[1:]...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
newPath := filepath.Join(root, "bin")
if p := os.Getenv("PATH"); p != "" {
newPath += string(filepath.ListSeparator) + p
}
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "GOROOT="+root, "PATH="+newPath))
handleSignals()
if err := cmd.Run(); err != nil {
// TODO: return the same exit status maybe.
os.Exit(1)
}
os.Exit(0)
}
func fmtSize(size int64) string {
const (
byte_unit = 1 << (10 * iota)
kilobyte_unit
megabyte_unit
)
unit := "B"
value := float64(size)
switch {
case size >= megabyte_unit:
unit = "MB"
value = value / megabyte_unit
case size >= kilobyte_unit:
unit = "KB"
value = value / kilobyte_unit
}
formatted := strings.TrimSuffix(strconv.FormatFloat(value, 'f', 1, 64), ".0")
return fmt.Sprintf("%s %s", formatted, unit)
}
// install installs a version of Go to the named target directory, creating the
// directory as needed.
func install(targetDir, version string) error {
if _, err := os.Stat(filepath.Join(targetDir, unpackedOkay)); err == nil {
log.Printf("%s: already downloaded in %v", version, targetDir)
return nil
}
if err := os.MkdirAll(targetDir, 0755); err != nil {
return err
}
goURL := versionArchiveURL(version)
res, err := http.Head(goURL)
if err != nil {
return err
}
if res.StatusCode == http.StatusNotFound {
return fmt.Errorf("no binary release of %v for %v/%v at %v", version, getOS(), runtime.GOARCH, goURL)
}
if res.StatusCode != http.StatusOK {
return fmt.Errorf("server returned %v checking size of %v", http.StatusText(res.StatusCode), goURL)
}
base := path.Base(goURL)
archiveFile := filepath.Join(targetDir, base)
if fi, err := os.Stat(archiveFile); err != nil || fi.Size() != res.ContentLength {
if err != nil && !os.IsNotExist(err) {
// Something weird. Don't try to download.
return err
}
if err := copyFromURL(archiveFile, goURL); err != nil {
return fmt.Errorf("error downloading %v: %v", goURL, err)
}
fi, err = os.Stat(archiveFile)
if err != nil {
return err
}
if fi.Size() != res.ContentLength {
return fmt.Errorf("downloaded file %s size %v doesn't match server size %v", archiveFile, fi.Size(), res.ContentLength)
}
}
wantSHA, err := slurpURLToString(goURL + ".sha256")
if err != nil {
return err
}
if err := verifySHA256(archiveFile, strings.TrimSpace(wantSHA)); err != nil {
return fmt.Errorf("error verifying SHA256 of %v: %v", archiveFile, err)
}
log.Printf("Unpacking %v ...", archiveFile)
if err := unpackArchive(targetDir, archiveFile); err != nil {
return fmt.Errorf("extracting archive %v: %v", archiveFile, err)
}
if err := os.WriteFile(filepath.Join(targetDir, unpackedOkay), nil, 0644); err != nil {
return err
}
log.Printf("Success. You may now run '%v'", version)
return nil
}
// unpackArchive unpacks the provided archive zip or tar.gz file to targetDir,
// removing the "go/" prefix from file entries.
func unpackArchive(targetDir, archiveFile string) error {
switch {
case strings.HasSuffix(archiveFile, ".zip"):
return unpackZip(targetDir, archiveFile)
case strings.HasSuffix(archiveFile, ".tar.gz"):
return unpackTarGz(targetDir, archiveFile)
default:
return errors.New("unsupported archive file")
}
}
// unpackTarGz is the tar.gz implementation of unpackArchive.
func unpackTarGz(targetDir, archiveFile string) error {
r, err := os.Open(archiveFile)
if err != nil {
return err
}
defer r.Close()
madeDir := map[string]bool{}
zr, err := gzip.NewReader(r)
if err != nil {
return err
}
tr := tar.NewReader(zr)
for {
f, err := tr.Next()
if err == io.EOF {
break
}
if err != nil {
return err
}
if !validRelPath(f.Name) {
return fmt.Errorf("tar file contained invalid name %q", f.Name)
}
rel := filepath.FromSlash(strings.TrimPrefix(f.Name, "go/"))
abs := filepath.Join(targetDir, rel)
fi := f.FileInfo()
mode := fi.Mode()
switch {
case mode.IsRegular():
// Make the directory. This is redundant because it should
// already be made by a directory entry in the tar
// beforehand. Thus, don't check for errors; the next
// write will fail with the same error.
dir := filepath.Dir(abs)
if !madeDir[dir] {
if err := os.MkdirAll(filepath.Dir(abs), 0755); err != nil {
return err
}
madeDir[dir] = true
}
wf, err := os.OpenFile(abs, os.O_RDWR|os.O_CREATE|os.O_TRUNC, mode.Perm())
if err != nil {
return err
}
n, err := io.Copy(wf, tr)
if closeErr := wf.Close(); closeErr != nil && err == nil {
err = closeErr
}
if err != nil {
return fmt.Errorf("error writing to %s: %v", abs, err)
}
if n != f.Size {
return fmt.Errorf("only wrote %d bytes to %s; expected %d", n, abs, f.Size)
}
if !f.ModTime.IsZero() {
if err := os.Chtimes(abs, f.ModTime, f.ModTime); err != nil {
// benign error. Gerrit doesn't even set the
// modtime in these, and we don't end up relying
// on it anywhere (the gomote push command relies
// on digests only), so this is a little pointless
// for now.
log.Printf("error changing modtime: %v", err)
}
}
case mode.IsDir():
if err := os.MkdirAll(abs, 0755); err != nil {
return err
}
madeDir[abs] = true
default:
return fmt.Errorf("tar file entry %s contained unsupported file type %v", f.Name, mode)
}
}
return nil
}
// unpackZip is the zip implementation of unpackArchive.
func unpackZip(targetDir, archiveFile string) error {
zr, err := zip.OpenReader(archiveFile)
if err != nil {
return err
}
defer zr.Close()
for _, f := range zr.File {
name := strings.TrimPrefix(f.Name, "go/")
outpath := filepath.Join(targetDir, name)
if f.FileInfo().IsDir() {
if err := os.MkdirAll(outpath, 0755); err != nil {
return err
}
continue
}
rc, err := f.Open()
if err != nil {
return err
}
// File
if err := os.MkdirAll(filepath.Dir(outpath), 0755); err != nil {
return err
}
out, err := os.OpenFile(outpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode())
if err != nil {
return err
}
_, err = io.Copy(out, rc)
rc.Close()
if err != nil {
out.Close()
return err
}
if err := out.Close(); err != nil {
return err
}
}
return nil
}
// verifySHA256 reports whether the named file has contents with
// SHA-256 of the given wantHex value.
func verifySHA256(file, wantHex string) error {
f, err := os.Open(file)
if err != nil {
return err
}
defer f.Close()
hash := sha256.New()
if _, err := io.Copy(hash, f); err != nil {
return err
}
if fmt.Sprintf("%x", hash.Sum(nil)) != wantHex {
return fmt.Errorf("%s corrupt? does not have expected SHA-256 of %v", file, wantHex)
}
return nil
}
// slurpURLToString downloads the given URL and returns it as a string.
func slurpURLToString(url_ string) (string, error) {
res, err := http.Get(url_)
if err != nil {
return "", err
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
return "", fmt.Errorf("%s: %v", url_, res.Status)
}
slurp, err := io.ReadAll(res.Body)
if err != nil {
return "", fmt.Errorf("reading %s: %v", url_, err)
}
return string(slurp), nil
}
// copyFromURL downloads srcURL to dstFile.
func copyFromURL(dstFile, srcURL string) (err error) {
f, err := os.Create(dstFile)
if err != nil {
return err
}
defer func() {
if err != nil {
f.Close()
os.Remove(dstFile)
}
}()
c := &http.Client{
Transport: &userAgentTransport{&http.Transport{
// It's already compressed. Prefer accurate ContentLength.
// (Not that GCS would try to compress it, though)
DisableCompression: true,
DisableKeepAlives: true,
Proxy: http.ProxyFromEnvironment,
}},
}
res, err := c.Get(srcURL)
if err != nil {
return err
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
return errors.New(res.Status)
}
pw := &progressWriter{w: f, total: res.ContentLength, output: os.Stderr}
n, err := io.Copy(pw, res.Body)
if err != nil {
return err
}
if res.ContentLength != -1 && res.ContentLength != n {
return fmt.Errorf("copied %v bytes; expected %v", n, res.ContentLength)
}
pw.update() // 100%
return f.Close()
}
type progressWriter struct {
w io.Writer
n int64
total int64
last time.Time
formatted bool
output io.Writer
}
func (p *progressWriter) update() {
end := " ..."
if p.n == p.total {
end = ""
}
if p.formatted {
fmt.Fprintf(p.output, "Downloaded %5.1f%% (%s / %s)%s\n",
(100.0*float64(p.n))/float64(p.total),
fmtSize(p.n), fmtSize(p.total), end)
} else {
fmt.Fprintf(p.output, "Downloaded %5.1f%% (%*d / %d bytes)%s\n",
(100.0*float64(p.n))/float64(p.total),
ndigits(p.total), p.n, p.total, end)
}
}
func ndigits(i int64) int {
var n int
for ; i != 0; i /= 10 {
n++
}
return n
}
func (p *progressWriter) Write(buf []byte) (n int, err error) {
n, err = p.w.Write(buf)
p.n += int64(n)
if now := time.Now(); now.Unix() != p.last.Unix() {
p.update()
p.last = now
}
return
}
// getOS returns runtime.GOOS. It exists as a function just for lazy
// testing of the Windows zip path when running on Linux/Darwin.
func getOS() string {
return runtime.GOOS
}
// versionArchiveURL returns the zip or tar.gz URL of the given Go version.
func versionArchiveURL(version string) string {
goos := getOS()
ext := ".tar.gz"
if goos == "windows" {
ext = ".zip"
}
arch := runtime.GOARCH
if goos == "linux" && runtime.GOARCH == "arm" {
arch = "armv6l"
}
return "https://dl.google.com/go/" + version + "." + goos + "-" + arch + ext
}
const caseInsensitiveEnv = runtime.GOOS == "windows"
// unpackedOkay is a sentinel zero-byte file to indicate that the Go
// version was downloaded and unpacked successfully.
const unpackedOkay = ".unpacked-success"
func exe() string {
if runtime.GOOS == "windows" {
return ".exe"
}
return ""
}
func goroot(version string) (string, error) {
home, err := homedir()
if err != nil {
return "", fmt.Errorf("failed to get home directory: %v", err)
}
return filepath.Join(home, "sdk", version), nil
}
func homedir() (string, error) {
// This could be replaced with os.UserHomeDir, but it was introduced too
// recently, and we want this to work with go as packaged by Linux
// distributions. Note that user.Current is not enough as it does not
// prioritize $HOME. See also Issue 26463.
switch getOS() {
case "plan9":
return "", fmt.Errorf("%q not yet supported", runtime.GOOS)
case "windows":
if dir := os.Getenv("USERPROFILE"); dir != "" {
return dir, nil
}
return "", errors.New("can't find user home directory; %USERPROFILE% is empty")
default:
if dir := os.Getenv("HOME"); dir != "" {
return dir, nil
}
if u, err := user.Current(); err == nil && u.HomeDir != "" {
return u.HomeDir, nil
}
return "", errors.New("can't find user home directory; $HOME is empty")
}
}
func validRelPath(p string) bool {
if p == "" || strings.Contains(p, `\`) || strings.HasPrefix(p, "/") || strings.Contains(p, "../") {
return false
}
return true
}
type userAgentTransport struct {
rt http.RoundTripper
}
func (uat userAgentTransport) RoundTrip(r *http.Request) (*http.Response, error) {
version := runtime.Version()
if strings.Contains(version, "devel") {
// Strip the SHA hash and date. We don't want spaces or other tokens (see RFC2616 14.43)
version = "devel"
}
r.Header.Set("User-Agent", "golang-x-build-version/"+version)
return uat.rt.RoundTrip(r)
}
// dedupEnv returns a copy of env with any duplicates removed, in favor of
// later values.
// Items are expected to be on the normal environment "key=value" form.
// If caseInsensitive is true, the case of keys is ignored.
//
// This function is unnecessary when the binary is
// built with Go 1.9+, but keep it around for now until Go 1.8
// is no longer seen in the wild in common distros.
//
// This is copied verbatim from golang.org/x/build/envutil.Dedup at CL 10301
// (commit a91ae26).
func dedupEnv(caseInsensitive bool, env []string) []string {
out := make([]string, 0, len(env))
saw := map[string]int{} // to index in the array
for _, kv := range env {
eq := strings.Index(kv, "=")
if eq < 1 {
out = append(out, kv)
continue
}
k := kv[:eq]
if caseInsensitive {
k = strings.ToLower(k)
}
if dupIdx, isDup := saw[k]; isDup {
out[dupIdx] = kv
} else {
saw[k] = len(out)
out = append(out, kv)
}
}
return out
}
func handleSignals() {
// Ensure that signals intended for the child process are not handled by
// this process' runtime (e.g. SIGQUIT). See issue #36976.
signal.Notify(make(chan os.Signal), signalsToIgnore...)
}
|
version
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/internal/version/signal_unix.go
|
// Copyright 2021 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.
//go:build unix || js || wasip1
package version
import (
"os"
"syscall"
)
var signalsToIgnore = []os.Signal{os.Interrupt, syscall.SIGQUIT}
|
version
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/internal/version/signal_notunix.go
|
// Copyright 2021 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.
//go:build plan9 || windows
package version
import (
"os"
)
var signalsToIgnore = []os.Signal{os.Interrupt}
|
version
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/internal/version/version_test.go
|
// Copyright 2019 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.
package version
import (
"bytes"
"fmt"
"reflect"
"strings"
"testing"
)
func TestDedupEnv(t *testing.T) {
tests := []struct {
noCase bool
in []string
want []string
}{
{
noCase: true,
in: []string{"k1=v1", "k2=v2", "K1=v3"},
want: []string{"K1=v3", "k2=v2"},
},
{
noCase: false,
in: []string{"k1=v1", "K1=V2", "k1=v3"},
want: []string{"k1=v3", "K1=V2"},
},
}
for _, tt := range tests {
got := dedupEnv(tt.noCase, tt.in)
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("Dedup(%v, %q) = %q; want %q", tt.noCase, tt.in, got, tt.want)
}
}
}
func TestFormatted(t *testing.T) {
var total int64 = 1
var buff = new(bytes.Buffer)
var units = []string{"B", "KB", "MB"}
for i := 1; i < 4; i++ {
pw := &progressWriter{w: nil, total: total, formatted: true, output: buff}
pw.update()
total *= 1024
expected := fmt.Sprintf("%d %s", 1, units[i-1])
if !strings.Contains(buff.String(), expected) {
t.Errorf("expected: %s received: %s", expected, buff.String())
}
}
}
func TestUnFormatted(t *testing.T) {
var total int64 = 1
var buff = new(bytes.Buffer)
for i := 1; i < 4; i++ {
pw := &progressWriter{w: nil, total: total, formatted: false, output: buff}
pw.update()
expected := fmt.Sprintf("%d bytes", total)
if !strings.Contains(buff.String(), expected) {
t.Errorf("expected: %s received: %s", expected, buff.String())
}
total *= 1024
}
}
|
version
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/internal/version/gotip.go
|
// Copyright 2018 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.
package version
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strconv"
)
// RunTip runs the "go" tool from the development tree.
func RunTip() {
log.SetFlags(0)
root, err := goroot("gotip")
if err != nil {
log.Fatalf("gotip: %v", err)
}
if len(os.Args) > 1 && os.Args[1] == "download" {
switch len(os.Args) {
case 2:
if err := installTip(root, ""); err != nil {
log.Fatalf("gotip: %v", err)
}
case 3:
if err := installTip(root, os.Args[2]); err != nil {
log.Fatalf("gotip: %v", err)
}
default:
log.Fatalf("gotip: usage: gotip download [CL number | branch name]")
}
log.Printf("Success. You may now run 'gotip'!")
os.Exit(0)
}
gobin := filepath.Join(root, "bin", "go"+exe())
if _, err := os.Stat(gobin); err != nil {
log.Fatalf("gotip: not downloaded. Run 'gotip download' to install to %v", root)
}
runGo(root)
}
func installTip(root, target string) error {
git := func(args ...string) error {
cmd := exec.Command("git", args...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = root
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "PWD="+cmd.Dir))
return cmd.Run()
}
gitOutput := func(args ...string) ([]byte, error) {
cmd := exec.Command("git", args...)
cmd.Dir = root
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "PWD="+cmd.Dir))
return cmd.Output()
}
if _, err := os.Stat(filepath.Join(root, ".git")); err != nil {
if err := os.MkdirAll(root, 0755); err != nil {
return fmt.Errorf("failed to create repository: %v", err)
}
if err := git("clone", "--origin=origin", "--depth=1", "https://go.googlesource.com/go", root); err != nil {
return fmt.Errorf("failed to clone git repository: %v", err)
}
}
// If the argument is a simple decimal number, consider it a CL number.
// Otherwise, consider it a branch name. If it's missing, fetch master.
if n, _ := strconv.Atoi(target); n >= 1 && strconv.Itoa(n) == target {
fmt.Fprintf(os.Stderr, "This will download and execute code from golang.org/cl/%s, continue? [y/n] ", target)
var answer string
if fmt.Scanln(&answer); answer != "y" {
return fmt.Errorf("interrupted")
}
// ls-remote outputs a number of lines like:
// 2621ba2c60d05ec0b9ef37cd71e45047b004cead refs/changes/37/227037/1
// 51f2af2be0878e1541d2769bd9d977a7e99db9ab refs/changes/37/227037/2
// af1f3b008281c61c54a5d203ffb69334b7af007c refs/changes/37/227037/3
// 6a10ebae05ce4b01cb93b73c47bef67c0f5c5f2a refs/changes/37/227037/meta
refs, err := gitOutput("ls-remote")
if err != nil {
return fmt.Errorf("failed to list remotes: %v", err)
}
r := regexp.MustCompile(`refs/changes/\d\d/` + target + `/(\d+)`)
match := r.FindAllStringSubmatch(string(refs), -1)
if match == nil {
return fmt.Errorf("CL %v not found", target)
}
var ref string
var patchSet int
for _, m := range match {
ps, _ := strconv.Atoi(m[1])
if ps > patchSet {
patchSet = ps
ref = m[0]
}
}
log.Printf("Fetching CL %v, Patch Set %v...", target, patchSet)
if err := git("fetch", "origin", ref); err != nil {
return fmt.Errorf("failed to fetch %s: %v", ref, err)
}
} else if target != "" {
log.Printf("Fetching branch %v...", target)
ref := "refs/heads/" + target
if err := git("fetch", "origin", ref); err != nil {
return fmt.Errorf("failed to fetch %s: %v", ref, err)
}
} else {
log.Printf("Updating the go development tree...")
if err := git("fetch", "origin", "master"); err != nil {
return fmt.Errorf("failed to fetch git repository updates: %v", err)
}
}
// Use checkout and a detached HEAD, because it will refuse to overwrite
// local changes, and warn if commits are being left behind, but will not
// mind if master is force-pushed upstream.
if err := git("-c", "advice.detachedHead=false", "checkout", "FETCH_HEAD"); err != nil {
return fmt.Errorf("failed to checkout git repository: %v", err)
}
// It shouldn't be the case, but in practice sometimes binary artifacts
// generated by earlier Go versions interfere with the build.
//
// Ask the user what to do about them if they are not gitignored. They might
// be artifacts that used to be ignored in previous versions, or precious
// uncommitted source files.
if err := git("clean", "-i", "-d"); err != nil {
return fmt.Errorf("failed to cleanup git repository: %v", err)
}
// Wipe away probably boring ignored files without bothering the user.
if err := git("clean", "-q", "-f", "-d", "-X"); err != nil {
return fmt.Errorf("failed to cleanup git repository: %v", err)
}
cmd := exec.Command(filepath.Join(root, "src", makeScript()))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = filepath.Join(root, "src")
// Add new GOROOT/bin to PATH to silence path warning at end of make.bash.
// Add PWD to environment to fix future calls to os.Getwd.
newPath := filepath.Join(root, "bin")
if p := os.Getenv("PATH"); p != "" {
newPath += string(filepath.ListSeparator) + p
}
cmd.Env = dedupEnv(caseInsensitiveEnv, append(os.Environ(), "PATH="+newPath, "PWD="+cmd.Dir))
if err := cmd.Run(); err != nil {
return fmt.Errorf("failed to build go: %v", err)
}
return nil
}
func makeScript() string {
switch runtime.GOOS {
case "plan9":
return "make.rc"
case "windows":
return "make.bat"
default:
return "make.bash"
}
}
|
go1.10.8
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.8/main.go
|
// Copyright 2019 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 go1.10.8 command runs the go command from Go 1.10.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10.8@latest
// $ go1.10.8 download
//
// And then use the go1.10.8 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.10.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10.8")
}
|
go1.19.10
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.10/main.go
|
// Copyright 2023 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 go1.19.10 command runs the go command from Go 1.19.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.10@latest
// $ go1.19.10 download
//
// And then use the go1.19.10 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.10.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.10")
}
|
go1.15.9
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.9/main.go
|
// Copyright 2021 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 go1.15.9 command runs the go command from Go 1.15.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.9@latest
// $ go1.15.9 download
//
// And then use the go1.15.9 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.15.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15.9")
}
|
go1.8.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8.2/main.go
|
// Copyright 2018 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 go1.8.2 command runs the go command from Go 1.8.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8.2@latest
// $ go1.8.2 download
//
// And then use the go1.8.2 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.8.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8.2")
}
|
go1.16.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.3/main.go
|
// Copyright 2021 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 go1.16.3 command runs the go command from Go 1.16.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.3@latest
// $ go1.16.3 download
//
// And then use the go1.16.3 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.16.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16.3")
}
|
go1.21rc4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21rc4/main.go
|
// Copyright 2023 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 go1.21rc4 command runs the go command from Go 1.21rc4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21rc4@latest
// $ go1.21rc4 download
//
// And then use the go1.21rc4 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.21.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.21rc4")
}
|
go1.9rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.9rc1/main.go
|
// Copyright 2018 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 go1.9rc1 command runs the go command from Go 1.9rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.9rc1@latest
// $ go1.9rc1 download
//
// And then use the go1.9rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.9
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.9rc1")
}
|
go1.14.8
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14.8/main.go
|
// Copyright 2020 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 go1.14.8 command runs the go command from Go 1.14.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.14.8@latest
// $ go1.14.8 download
//
// And then use the go1.14.8 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.14.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.14.8")
}
|
go1.21rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21rc1/main.go
|
// Copyright 2023 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 go1.21rc1 command runs the go command from Go 1.21rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21rc1@latest
// $ go1.21rc1 download
//
// And then use the go1.21rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.21.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.21rc1")
}
|
go1.12.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.12/main.go
|
// Copyright 2019 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 go1.12.12 command runs the go command from Go 1.12.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.12@latest
// $ go1.12.12 download
//
// And then use the go1.12.12 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.12")
}
|
go1.20.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.3/main.go
|
// Copyright 2023 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 go1.20.3 command runs the go command from Go 1.20.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.3@latest
// $ go1.20.3 download
//
// And then use the go1.20.3 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.20.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20.3")
}
|
go1.21rc3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21rc3/main.go
|
// Copyright 2023 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 go1.21rc3 command runs the go command from Go 1.21rc3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21rc3@latest
// $ go1.21rc3 download
//
// And then use the go1.21rc3 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.21.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.21rc3")
}
|
go1.23rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.23rc2/main.go
|
// Copyright 2024 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 go1.23rc2 command runs the go command from Go 1.23rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.23rc2@latest
// $ go1.23rc2 download
//
// And then use the go1.23rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.23.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.23rc2")
}
|
go1.12.14
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.14/main.go
|
// Copyright 2019 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 go1.12.14 command runs the go command from Go 1.12.14.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.14@latest
// $ go1.12.14 download
//
// And then use the go1.12.14 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.14")
}
|
go1.15.7
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.7/main.go
|
// Copyright 2021 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 go1.15.7 command runs the go command from Go 1.15.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.7@latest
// $ go1.15.7 download
//
// And then use the go1.15.7 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.15.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15.7")
}
|
go1.16.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.12/main.go
|
// Copyright 2021 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 go1.16.12 command runs the go command from Go 1.16.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.12@latest
// $ go1.16.12 download
//
// And then use the go1.16.12 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.16.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16.12")
}
|
go1.10rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10rc2/main.go
|
// Copyright 2018 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 go1.10rc2 command runs the go command from Go 1.10rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10rc2@latest
// $ go1.10rc2 download
//
// And then use the go1.10rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.10
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10rc2")
}
|
go1.16
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16/main.go
|
// Copyright 2021 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 go1.16 command runs the go command from Go 1.16.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16@latest
// $ go1.16 download
//
// And then use the go1.16 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/go1.16
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16")
}
|
go1.18.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.3/main.go
|
// Copyright 2022 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 go1.18.3 command runs the go command from Go 1.18.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.3@latest
// $ go1.18.3 download
//
// And then use the go1.18.3 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.3")
}
|
go1.20rc3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20rc3/main.go
|
// Copyright 2023 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 go1.20rc3 command runs the go command from Go 1.20rc3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20rc3@latest
// $ go1.20rc3 download
//
// And then use the go1.20rc3 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.20.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20rc3")
}
|
go1.12.7
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.7/main.go
|
// Copyright 2019 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 go1.12.7 command runs the go command from Go 1.12.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.7@latest
// $ go1.12.7 download
//
// And then use the go1.12.7 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.7")
}
|
go1.18.6
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.6/main.go
|
// Copyright 2022 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 go1.18.6 command runs the go command from Go 1.18.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.6@latest
// $ go1.18.6 download
//
// And then use the go1.18.6 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.6")
}
|
go1.17rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17rc2/main.go
|
// Copyright 2021 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 go1.17rc2 command runs the go command from Go 1.17rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17rc2@latest
// $ go1.17rc2 download
//
// And then use the go1.17rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.17
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.17rc2")
}
|
go1.22.0
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.22.0/main.go
|
// Copyright 2024 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 go1.22.0 command runs the go command from Go 1.22.0.
//
// To install, run:
//
// $ go install golang.org/dl/go1.22.0@latest
// $ go1.22.0 download
//
// And then use the go1.22.0 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/go1.22.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.22.0")
}
|
go1.16rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16rc1/main.go
|
// Copyright 2021 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 go1.16rc1 command runs the go command from Go 1.16rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16rc1@latest
// $ go1.16rc1 download
//
// And then use the go1.16rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.16
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.16rc1")
}
|
go1.12.9
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.9/main.go
|
// Copyright 2019 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 go1.12.9 command runs the go command from Go 1.12.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.9@latest
// $ go1.12.9 download
//
// And then use the go1.12.9 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.9")
}
|
go1.18.7
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.7/main.go
|
// Copyright 2022 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 go1.18.7 command runs the go command from Go 1.18.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.7@latest
// $ go1.18.7 download
//
// And then use the go1.18.7 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.7")
}
|
go1.20
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20/main.go
|
// Copyright 2023 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 go1.20 command runs the go command from Go 1.20.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20@latest
// $ go1.20 download
//
// And then use the go1.20 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/go1.20.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20")
}
|
go1.13.13
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.13/main.go
|
// Copyright 2020 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 go1.13.13 command runs the go command from Go 1.13.13.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.13@latest
// $ go1.13.13 download
//
// And then use the go1.13.13 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.13")
}
|
go1.20.1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.1/main.go
|
// Copyright 2023 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 go1.20.1 command runs the go command from Go 1.20.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.1@latest
// $ go1.20.1 download
//
// And then use the go1.20.1 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.20.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20.1")
}
|
go1.18.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.4/main.go
|
// Copyright 2022 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 go1.18.4 command runs the go command from Go 1.18.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.4@latest
// $ go1.18.4 download
//
// And then use the go1.18.4 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.4")
}
|
go1.19.5
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.5/main.go
|
// Copyright 2023 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 go1.19.5 command runs the go command from Go 1.19.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.5@latest
// $ go1.19.5 download
//
// And then use the go1.19.5 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.5")
}
|
go1.19rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19rc1/main.go
|
// Copyright 2022 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 go1.19rc1 command runs the go command from Go 1.19rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19rc1@latest
// $ go1.19rc1 download
//
// And then use the go1.19rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.19.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19rc1")
}
|
go1.18.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.2/main.go
|
// Copyright 2022 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 go1.18.2 command runs the go command from Go 1.18.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.2@latest
// $ go1.18.2 download
//
// And then use the go1.18.2 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.18.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.18.2")
}
|
go1.12.17
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.17/main.go
|
// Copyright 2020 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 go1.12.17 command runs the go command from Go 1.12.17.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.17@latest
// $ go1.12.17 download
//
// And then use the go1.12.17 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.17")
}
|
go1.13.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.3/main.go
|
// Copyright 2019 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 go1.13.3 command runs the go command from Go 1.13.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.3@latest
// $ go1.13.3 download
//
// And then use the go1.13.3 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.3")
}
|
go1.11.10
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11.10/main.go
|
// Copyright 2019 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 go1.11.10 command runs the go command from Go 1.11.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11.10@latest
// $ go1.11.10 download
//
// And then use the go1.11.10 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.11.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.11.10")
}
|
go1.13rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13rc2/main.go
|
// Copyright 2019 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 go1.13rc2 command runs the go command from Go 1.13rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13rc2@latest
// $ go1.13rc2 download
//
// And then use the go1.13rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.13
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13rc2")
}
|
go1.23rc1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.23rc1/main.go
|
// Copyright 2024 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 go1.23rc1 command runs the go command from Go 1.23rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.23rc1@latest
// $ go1.23rc1 download
//
// And then use the go1.23rc1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.23.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.23rc1")
}
|
go1.12.8
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.8/main.go
|
// Copyright 2019 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 go1.12.8 command runs the go command from Go 1.12.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.8@latest
// $ go1.12.8 download
//
// And then use the go1.12.8 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.8")
}
|
go1.19.2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.2/main.go
|
// Copyright 2022 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 go1.19.2 command runs the go command from Go 1.19.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.2@latest
// $ go1.19.2 download
//
// And then use the go1.19.2 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.2")
}
|
go1.19rc2
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19rc2/main.go
|
// Copyright 2022 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 go1.19rc2 command runs the go command from Go 1.19rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19rc2@latest
// $ go1.19rc2 download
//
// And then use the go1.19rc2 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.19.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19rc2")
}
|
go1.14.9
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.14.9/main.go
|
// Copyright 2020 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 go1.14.9 command runs the go command from Go 1.14.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.14.9@latest
// $ go1.14.9 download
//
// And then use the go1.14.9 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.14.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.14.9")
}
|
go1.15beta1
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15beta1/main.go
|
// Copyright 2020 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 go1.15beta1 command runs the go command from Go 1.15beta1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15beta1@latest
// $ go1.15beta1 download
//
// And then use the go1.15beta1 command as if it were your normal go
// command.
//
// See the release notes at https://tip.golang.org/doc/go1.15
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15beta1")
}
|
go1.13.8
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.8/main.go
|
// Copyright 2020 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 go1.13.8 command runs the go command from Go 1.13.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.8@latest
// $ go1.13.8 download
//
// And then use the go1.13.8 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.8")
}
|
go1.19.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.12/main.go
|
// Copyright 2023 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 go1.19.12 command runs the go command from Go 1.19.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.12@latest
// $ go1.19.12 download
//
// And then use the go1.19.12 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.12.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.12")
}
|
go1.13.15
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.15/main.go
|
// Copyright 2020 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 go1.13.15 command runs the go command from Go 1.13.15.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.15@latest
// $ go1.13.15 download
//
// And then use the go1.13.15 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.13.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.13.15")
}
|
go1.20.12
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.12/main.go
|
// Copyright 2023 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 go1.20.12 command runs the go command from Go 1.20.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.12@latest
// $ go1.20.12 download
//
// And then use the go1.20.12 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.20.12.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20.12")
}
|
go1.8.7
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8.7/main.go
|
// Copyright 2018 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 go1.8.7 command runs the go command from Go 1.8.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8.7@latest
// $ go1.8.7 download
//
// And then use the go1.8.7 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.8.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8.7")
}
|
go1.10.3
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.3/main.go
|
// Copyright 2018 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 go1.10.3 command runs the go command from Go 1.10.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10.3@latest
// $ go1.10.3 download
//
// And then use the go1.10.3 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.10.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.10.3")
}
|
go1.12.6
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.6/main.go
|
// Copyright 2019 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 go1.12.6 command runs the go command from Go 1.12.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.6@latest
// $ go1.12.6 download
//
// And then use the go1.12.6 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.12.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.12.6")
}
|
go1.20.11
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.11/main.go
|
// Copyright 2023 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 go1.20.11 command runs the go command from Go 1.20.11.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.11@latest
// $ go1.20.11 download
//
// And then use the go1.20.11 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.20.11.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.20.11")
}
|
go1.19.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.4/main.go
|
// Copyright 2022 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 go1.19.4 command runs the go command from Go 1.19.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.4@latest
// $ go1.19.4 download
//
// And then use the go1.19.4 command as if it were your normal go
// command.
//
// See the release notes at https://go.dev/doc/devel/release#go1.19.minor.
//
// File bugs at https://go.dev/issue/new.
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.19.4")
}
|
go1.15.4
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.4/main.go
|
// Copyright 2020 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 go1.15.4 command runs the go command from Go 1.15.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.4@latest
// $ go1.15.4 download
//
// And then use the go1.15.4 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.15.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.15.4")
}
|
go1.8.6
|
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8.6/main.go
|
// Copyright 2018 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 go1.8.6 command runs the go command from Go 1.8.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8.6@latest
// $ go1.8.6 download
//
// And then use the go1.8.6 command as if it were your normal go
// command.
//
// See the release notes at https://golang.org/doc/devel/release.html#go1.8.minor
//
// File bugs at https://golang.org/issues/new
package main
import "golang.org/dl/internal/version"
func main() {
version.Run("go1.8.6")
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.