repo_id stringclasses 927
values | file_path stringlengths 99 214 | content stringlengths 2 4.15M |
|---|---|---|
go1.11.5 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11.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.11.5 command runs the go command from Go 1.11.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11.5@latest
// $ go1.11.5 download
//
//... |
go1.19.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.19.9/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.9 command runs the go command from Go 1.19.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.19.9@latest
// $ go1.19.9 download
//
//... |
go1.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.9/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.9 command runs the go command from Go 1.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.9@latest
// $ go1.9 download
//
// And then us... |
go1.10.4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.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.10.4 command runs the go command from Go 1.10.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10.4@latest
// $ go1.10.4 download
//
//... |
go1.21.12 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.12/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.21.12 command runs the go command from Go 1.21.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.12@latest
// $ go1.21.12 download
/... |
go1.17.5 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.5/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.17.5 command runs the go command from Go 1.17.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17.5@latest
// $ go1.17.5 download
//
//... |
go1.13rc1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13rc1/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.13rc1 command runs the go command from Go 1.13rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13rc1@latest
// $ go1.13rc1 download
/... |
go1.17.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.9/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.17.9 command runs the go command from Go 1.17.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17.9@latest
// $ go1.17.9 download
//
//... |
go1.22.5 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.22.5/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.5 command runs the go command from Go 1.22.5.
//
// To install, run:
//
// $ go install golang.org/dl/go1.22.5@latest
// $ go1.22.5 download
//
//... |
go1.16.14 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.14/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.16.14 command runs the go command from Go 1.16.14.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.14@latest
// $ go1.16.14 download
/... |
go1.15.1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.1/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.1 command runs the go command from Go 1.15.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.1@latest
// $ go1.15.1 download
//
//... |
go1.16beta1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16beta1/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.16beta1 command runs the go command from Go 1.16beta1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16beta1@latest
// $ go1.16beta1 do... |
go1.13beta1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13beta1/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.13beta1 command runs the go command from Go 1.13beta1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13beta1@latest
// $ go1.13beta1 do... |
go1.21.11 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.11/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.21.11 command runs the go command from Go 1.21.11.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.11@latest
// $ go1.21.11 download
/... |
go1.17.4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.4/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.17.4 command runs the go command from Go 1.17.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17.4@latest
// $ go1.17.4 download
//
//... |
go1.8 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8/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 command runs the go command from Go 1.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8@latest
// $ go1.8 download
//
// And then us... |
go1.21.10 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.10/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.21.10 command runs the go command from Go 1.21.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.10@latest
// $ go1.21.10 download
/... |
go1.12.13 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.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.12.13 command runs the go command from Go 1.12.13.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.13@latest
// $ go1.12.13 download
/... |
go1.15.14 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.14/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.14 command runs the go command from Go 1.15.14.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.14@latest
// $ go1.15.14 download
/... |
go1.17.12 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.12/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.17.12 command runs the go command from Go 1.17.12.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17.12@latest
// $ go1.17.12 download
/... |
go1.18.8 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.18.8/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.8 command runs the go command from Go 1.18.8.
//
// To install, run:
//
// $ go install golang.org/dl/go1.18.8@latest
// $ go1.18.8 download
//
//... |
go1.20.14 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.14/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.20.14 command runs the go command from Go 1.20.14.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.14@latest
// $ go1.20.14 download
/... |
go1.10.1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.10.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.10.1 command runs the go command from Go 1.10.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.10.1@latest
// $ go1.10.1 download
//
//... |
go1.12.10 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.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.12.10 command runs the go command from Go 1.12.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.10@latest
// $ go1.12.10 download
/... |
go1.21.7 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.7/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.21.7 command runs the go command from Go 1.21.7.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.7@latest
// $ go1.21.7 download
//
//... |
go1.20.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.9/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.9 command runs the go command from Go 1.20.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.9@latest
// $ go1.20.9 download
//
//... |
go1.9.4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.9.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.9.4 command runs the go command from Go 1.9.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.9.4@latest
// $ go1.9.4 download
//
// And... |
go1.20.6 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.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.20.6 command runs the go command from Go 1.20.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.6@latest
// $ go1.20.6 download
//
//... |
go1.21.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.9/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.21.9 command runs the go command from Go 1.21.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.9@latest
// $ go1.21.9 download
//
//... |
go1.11.13 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11.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.11.13 command runs the go command from Go 1.11.13.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11.13@latest
// $ go1.11.13 download
/... |
go1.17.3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.17.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.17.3 command runs the go command from Go 1.17.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.17.3@latest
// $ go1.17.3 download
//
//... |
go1.12.15 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12.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.12.15 command runs the go command from Go 1.12.15.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12.15@latest
// $ go1.12.15 download
/... |
go1.13.10 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.13.10/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.10 command runs the go command from Go 1.13.10.
//
// To install, run:
//
// $ go install golang.org/dl/go1.13.10@latest
// $ go1.13.10 download
/... |
go1.21.6 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.6/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.21.6 command runs the go command from Go 1.21.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.6@latest
// $ go1.21.6 download
//
//... |
go1.11rc2 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.11rc2/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.11rc2 command runs the go command from Go 1.11rc2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.11rc2@latest
// $ go1.11rc2 download
/... |
go1.21.3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.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.21.3 command runs the go command from Go 1.21.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.3@latest
// $ go1.21.3 download
//
//... |
go1.16.9 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.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.16.9 command runs the go command from Go 1.16.9.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.9@latest
// $ go1.16.9 download
//
//... |
go1.12beta2 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.12beta2/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.12beta2 command runs the go command from Go 1.12beta2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.12beta2@latest
// $ go1.12beta2 do... |
go1.22rc1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.22rc1/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.22rc1 command runs the go command from Go 1.22rc1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.22rc1@latest
// $ go1.22rc1 download
/... |
go1.16.1 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.16.1/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.1 command runs the go command from Go 1.16.1.
//
// To install, run:
//
// $ go install golang.org/dl/go1.16.1@latest
// $ go1.16.1 download
//
//... |
go1.9.3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.9.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.9.3 command runs the go command from Go 1.9.3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.9.3@latest
// $ go1.9.3 download
//
// And... |
go1.6.4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.6.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.6.4 command runs the go command from Go 1.6.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.6.4@latest
// $ go1.6.4 download
//
// And... |
go1.20.2 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.20.2/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.2 command runs the go command from Go 1.20.2.
//
// To install, run:
//
// $ go install golang.org/dl/go1.20.2@latest
// $ go1.20.2 download
//
//... |
go1.15.6 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.15.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.15.6 command runs the go command from Go 1.15.6.
//
// To install, run:
//
// $ go install golang.org/dl/go1.15.6@latest
// $ go1.15.6 download
//
//... |
go1.8rc3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.8rc3/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.8rc3 command runs the go command from Go 1.8rc3.
//
// To install, run:
//
// $ go install golang.org/dl/go1.8rc3@latest
// $ go1.8rc3 download
//
//... |
go1.21.4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/dl/go1.21.4/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.4 command runs the go command from Go 1.21.4.
//
// To install, run:
//
// $ go install golang.org/dl/go1.21.4@latest
// $ go1.21.4 download
//
//... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_unix_other.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 aix || linux || solaris || zos
package term
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
const ioctlWriteTermios = unix.TCS... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/CONTRIBUTING.md | # Contributing to Go
Go is an open source project.
It is the work of hundreds of contributors. We appreciate your help!
## Filing issues
When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions:
1. What version of Go are you using (`go version`)?
2. What operating system and... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/terminal_test.go | // Copyright 2011 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 term
import (
"bytes"
"io"
"os"
"runtime"
"testing"
)
type MockTerminal struct {
toSend []byte
bytesPerRead int
received []byte
}
f... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/PATENTS | Additional IP Rights Grant (Patents)
"This implementation" means the copyrightable works distributed by
Google as part of the Go project.
Google hereby grants to You a perpetual, worldwide, non-exclusive,
no-charge, royalty-free, irrevocable (except as stated in this section)
patent license to make, have made, use, o... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_unsupported.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.
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9
package term
import (
"fmt"
... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_unix.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.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
package term
import (
"golang.org/x/sys/unix"
)
type state ... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/go.mod | module golang.org/x/term
go 1.18
require golang.org/x/sys v0.22.0
|
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/README.md | # Go terminal/console support
[](https://pkg.go.dev/golang.org/x/term)
This repository provides Go terminal and console support packages.
## Download/Install
The easiest way to install is to run `go get -u golang.org/x/term`. You can
also manually git c... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_windows.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 term
import (
"os"
"golang.org/x/sys/windows"
)
type state struct {
mode uint32
}
func isTerminal(fd int) bool {
var st uint32
err := windows.G... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/go.sum | golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term.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 term provides support functions for dealing with terminals, as
// commonly found on UNIX systems.
//
// Putting a terminal into raw mode is the most ... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_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 term_test
import (
"os"
"runtime"
"testing"
"golang.org/x/term"
)
func TestIsTerminalTempFile(t *testing.T) {
file, err := os.CreateTemp("", "Te... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/terminal.go | // Copyright 2011 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 term
import (
"bytes"
"io"
"runtime"
"strconv"
"sync"
"unicode/utf8"
)
// EscapeCodes contains escape sequences that can be written to the termi... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/LICENSE | Copyright 2009 The Go Authors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistrib... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/codereview.cfg | issuerepo: golang/go
|
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_plan9.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 term
import (
"fmt"
"runtime"
"golang.org/x/sys/plan9"
)
type state struct{}
func isTerminal(fd int) bool {
path, err := plan9.Fd2path(fd)
if e... |
term | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/term/term_unix_bsd.go | // Copyright 2013 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 darwin || dragonfly || freebsd || netbsd || openbsd
package term
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TIOCGETA
const ioctl... |
example | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/PATENTS | Additional IP Rights Grant (Patents)
"This implementation" means the copyrightable works distributed by
Google as part of the Go project.
Google hereby grants to You a perpetual, worldwide, non-exclusive,
no-charge, royalty-free, irrevocable (except as stated in this section)
patent license to make, have made, use, o... |
example | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/go.mod | module golang.org/x/example
go 1.18
require golang.org/x/tools v0.14.0
require (
golang.org/x/mod v0.13.0 // indirect
golang.org/x/sys v0.13.0 // indirect
gopkg.in/yaml.v3 v3.0.1
)
|
example | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/README.md | # Go example projects
[](https://pkg.go.dev/golang.org/x/example)
This repository contains a collection of Go programs and libraries that
demonstrate the language, standard libraries, and tools.
## Clone the project
```
$ git clone https://go.googles... |
example | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/go.sum | golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY=
golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.1... |
example | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/LICENSE | Copyright 2009 The Go Authors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistrib... |
gotypes | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/Makefile |
all: README.md
go build ./...
README.md: go-types.md ../internal/cmd/weave/*.go $(wildcard */*.go)
go run ../internal/cmd/weave go-types.md >README.md
# This is for previewing using github.
# $HOME/markdown must be a github client.
test: README.md
cp README.md $$HOME/markdown/
(cd $$HOME/markdown/ && git commit ... |
gotypes | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/README.md | <!-- Autogenerated by weave; DO NOT EDIT -->
# `go/types`: The Go Type Checker
This document is maintained by Alan Donovan `adonovan@google.com`.
[October 2015 GothamGo talk on go/types](https://docs.google.com/presentation/d/13OvHYozAUBeISPRoLgG7kMBuja1NsU1D_mMlmbaYojk/view)
# Contents
1. [Changes in Go 1.18](#c... |
gotypes | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/go-types.md |
# `go/types`: The Go Type Checker
This document is maintained by Alan Donovan `adonovan@google.com`.
[October 2015 GothamGo talk on go/types](https://docs.google.com/presentation/d/13OvHYozAUBeISPRoLgG7kMBuja1NsU1D_mMlmbaYojk/view)
# Contents
%toc
# Changes in Go 1.18
Go 1.18 introduces generics, and several co... |
gotypes | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/gen.go | //go:generate bash -c "go run ../internal/cmd/weave/weave.go ./go-types.md > README.md"
package gotypes
|
lookup | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/lookup/lookup.go | package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
"strings"
)
// !+input
const hello = `
package main
import "fmt"
// append
func main() {
// fmt
fmt.Println("Hello, world")
// main
main, x := 1, 2
// main
print(main, x... |
implements | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/implements/main.go | package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
)
// !+input
const input = `package main
type A struct{}
func (*A) f()
type B int
func (B) f()
func (*B) g()
type I interface { f() }
type J interface { g() }
`
//!-input
func main() {
// Parse one file.
fset := t... |
typeandvalue | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/typeandvalue/main.go | package main
import (
"bytes"
"fmt"
"go/ast"
"go/format"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
)
// !+input
const input = `
package main
var m = make(map[string]int)
func main() {
v, ok := m["hello, " + "world"]
print(rune(v), ok)
}
`
//!-input
var fset = token.NewFileSet()
func main()... |
nilfunc | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/nilfunc/main.go | package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
)
// !+input
const input = `package main
import "bytes"
func main() {
var buf bytes.Buffer
if buf.Bytes == nil && bytes.Repeat != nil && main == nil {
// ...
}
}
`
//!-input
var fset = token.NewFileSet()
func m... |
pkginfo | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/pkginfo/main.go | // !+
package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
)
const hello = `package main
import "fmt"
func main() {
fmt.Println("Hello, world")
}`
func main() {
fset := token.NewFileSet()
// Parse the input string, []byte, or io.Reader,
// recording position... |
doc | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/doc/main.go | // The doc command prints the doc comment of a package-level object.
package main
import (
"fmt"
"go/ast"
"log"
"os"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/packages"
"golang.org/x/tools/go/types/typeutil"
)
func main() {
if len(os.Args) != 3 {
log.Fatal("Usage: doc <package> <object>")
... |
hello | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/hello/hello.go | // !+
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
//!-
|
hugeparam | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/hugeparam/main.go | // The hugeparam command identifies by-value parameters that are larger than n bytes.
//
// Example:
//
// $ ./hugeparams encoding/xml
package main
import (
"flag"
"fmt"
"go/ast"
"go/token"
"go/types"
"log"
"os"
"golang.org/x/tools/go/packages"
)
// !+
var bytesFlag = flag.Int("bytes", 48, "maximum parameter... |
defsuses | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/defsuses/main.go | package main
import (
"fmt"
"go/ast"
"go/importer"
"go/parser"
"go/token"
"go/types"
"log"
)
const hello = `package main
import "fmt"
func main() {
fmt.Println("Hello, world")
}
`
// !+
func PrintDefsUses(fset *token.FileSet, files ...*ast.File) error {
conf := types.Config{Importer: importer.Defau... |
skeleton | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/gotypes/skeleton/main.go | // The skeleton command prints the boilerplate for a concrete type
// that implements the specified interface type.
//
// Example:
//
// $ ./skeleton io ReadWriteCloser buffer
// // *buffer implements io.ReadWriteCloser.
// type buffer struct{ /* ... */ }
// func (b *buffer) Close() error { panic("unimplemented") }
// ... |
outyet | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/outyet/main_test.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.
package main
import (
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"
)
// statusHandler is an http.Handler that writes an empty response using... |
outyet | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/outyet/go.mod | module golang.org/x/example/outyet
go 1.19
|
outyet | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/outyet/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.
// Outyet is a web server that announces whether or not a particular Go version
// has been tagged.
package main
import (
"expvar"
"flag"
"fmt"
"html/templ... |
appengine-hello | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/app.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.
// Package hello is a simple App Engine application that replies to requests
// on /hello with a welcoming message.
package hello
import (
"fmt"
"net/http"
)... |
appengine-hello | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/README.md | This code is a starting point for your Google App Engine application in
Go.
To run the application locally you need the install the [Go Cloud
SDK](https://cloud.google.com/appengine/docs/go/#Go_tools) and execute the next
command from the directory containing this file:
$ goapp serve app.yaml
To deploy the appli... |
appengine-hello | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/app.yaml | # 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.
application: you-application-id
version: 1
runtime: go
api_version: go1
handlers:
- url: /hello
script: _go_app
- url: /favicon.ico
static_files: static/favi... |
static | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/static/style.css | /*
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.
*/
h1 {
text-align: center;
} |
static | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/static/index.html | <!DOCTYPE html>
<!--
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.
-->
<html>
<head>
<title>Hello, world</title>
<link rel="stylesheet" href="/style.css">
<script src="/script.js"></script>
</head>
<b... |
static | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/appengine-hello/static/script.js | /*
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.
*/
"use strict";
function fetchMessage() {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "/hello", false);
xmlHttp.send(null);
document.get... |
slog-handler-guide | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/Makefile |
all: README.md
go build ./...
README.md: guide.md ../internal/cmd/weave/*.go $(wildcard */*.go)
go run ../internal/cmd/weave guide.md >README.md
# This is for previewing using github.
# $HOME/markdown must be a github client.
test: README.md
cp README.md $$HOME/markdown/
(cd $$HOME/markdown/ && git commit -m . R... |
slog-handler-guide | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/README.md | <!-- Autogenerated by weave; DO NOT EDIT -->
# A Guide to Writing `slog` Handlers
This document is maintained by Jonathan Amsterdam `jba@google.com`.
# Contents
1. [Introduction](#introduction)
1. [Loggers and their handlers](#loggers-and-their-handlers)
1. [Implementing `Handler` methods](#implementing-`handler`-... |
slog-handler-guide | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/guide.md |
# A Guide to Writing `slog` Handlers
This document is maintained by Jonathan Amsterdam `jba@google.com`.
# Contents
%toc
# Introduction
The standard library’s `log/slog` package has a two-part design.
A "frontend," implemented by the `Logger` type,
gathers stuctured log information like a message, level, and at... |
indenthandler2 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler2/indent_handler_test.go | //go:build go1.21
package indenthandler
import (
"bufio"
"bytes"
"fmt"
"reflect"
"regexp"
"strconv"
"strings"
"testing"
"unicode"
"log/slog"
"testing/slogtest"
)
func TestSlogtest(t *testing.T) {
var buf bytes.Buffer
err := slogtest.TestHandler(New(&buf, nil), func() []map[string]any {
return parseLo... |
indenthandler2 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler2/indent_handler.go | //go:build go1.21
package indenthandler
import (
"context"
"fmt"
"io"
"log/slog"
"runtime"
"sync"
"time"
)
// !+IndentHandler
type IndentHandler struct {
opts Options
goas []groupOrAttrs
mu *sync.Mutex
out io.Writer
}
//!-IndentHandler
type Options struct {
// Level reports the minimum level to log.... |
indenthandler3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler3/indent_handler_test.go | //go:build go1.21
package indenthandler
import (
"bytes"
"log/slog"
"reflect"
"regexp"
"testing"
"testing/slogtest"
"gopkg.in/yaml.v3"
)
// !+TestSlogtest
func TestSlogtest(t *testing.T) {
var buf bytes.Buffer
err := slogtest.TestHandler(New(&buf, nil), func() []map[string]any {
return parseLogEntries(t,... |
indenthandler3 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler3/indent_handler.go | //go:build go1.21
package indenthandler
import (
"context"
"fmt"
"io"
"log/slog"
"runtime"
"slices"
"sync"
"time"
)
// !+IndentHandler
type IndentHandler struct {
opts Options
preformatted []byte // data from WithGroup and WithAttrs
unopenedGroups []string // groups from WithGroup that haven... |
indenthandler4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler4/indent_handler_test.go | //go:build go1.21
package indenthandler
import (
"bytes"
"log/slog"
"reflect"
"regexp"
"testing"
"testing/slogtest"
"gopkg.in/yaml.v3"
)
// !+TestSlogtest
func TestSlogtest(t *testing.T) {
var buf bytes.Buffer
err := slogtest.TestHandler(New(&buf, nil), func() []map[string]any {
return parseLogEntries(t,... |
indenthandler4 | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/example/slog-handler-guide/indenthandler4/indent_handler_norace_test.go | //go:build go1.21 && !race
package indenthandler
import (
"fmt"
"io"
"log/slog"
"strconv"
"testing"
)
func TestAlloc(t *testing.T) {
a := slog.String("key", "value")
t.Run("Appendf", func(t *testing.T) {
buf := make([]byte, 0, 100)
g := testing.AllocsPerRun(2, func() {
buf = fmt.Appendf(buf, "%s: %q\n"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.