go
go copied to clipboard
The Go programming language
### Go version go version devel go1.23-b788e91bad Tue Jun 11 18:08:44 2024 +0000 linux/amd64 ### Output of `go env` in your module/workspace: ```shell GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/korniltsev/.cache/go-build' GOENV='/home/korniltsev/.config/go/env' GOEXE='' GOEXPERIMENT=''...
### Proposal Details **tl;dr:** Can we show something more descriptive than `go.shape.*uint8` for generic methods invoked on a struct pointer Maybe `go.shape.uintptr` or the element type? --- While profiling is...
### Proposal Details **Motivation** With popular testing frameworks like [`github.com/stretchr/testify/require`](https://github.com/stretchr/testify/require) there is a pattern to add assertion functions to the test cases in table driven tests. This pattern allows to...
### Go version go version go1.22.3 darwin/arm64 ### Output of `go env` in your module/workspace: ```shell It is not important here and contains information about my employer that I do...
### Proposal Details The docs of the `io.Writer` guarantee that a proper implementation should return a non-nil error in case if it was a short writer (`n < len(data)`): >...
Hello, Regarding #47809 , would you consider returning a different err ? "gzip: invalid header" can be quite misleading when the error is actually because of trailing garbage.
The interaction of [exec.Cmd](https://pkg.go.dev/os/exec#Cmd) and [os.Getwd](https://pkg.go.dev/os#Getwd) is rather subtle: the working directory of a POSIX process is represented by a file descriptor, not a string, so C's [getcwd](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html) will always...
### Go version go version go1.22.4 darwin/arm64 ### Output of `go env` in your module/workspace: ```shell GO111MODULE='' GOARCH='arm64' GOBIN='' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='arm64' GOHOSTOS='darwin' GOINSECURE='' GOOS='darwin' GOPROXY='https://proxy.golang.org,direct' GOROOT='/opt/homebrew/Cellar/go/1.22.4/libexec' GOSUMDB='sum.golang.org' GOTMPDIR=''...
The countertest package exists to test telemetry instrumentation, with a `countertest.Open(dir)` API to initialize the counter file in a temp directory. But on Windows, we can't clean up that directory...
### Go version go version go1.22.0 darwin/amd64 ### Output of `go env` in your module/workspace: ```shell go env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/Users/mm/Library/Caches/go-build' GOENV='/Users/mm/Library/Application Support/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='darwin' GOINSECURE=''...