Golang os: file write permission ignored on linux trybots

https://go.dev/cl/614296 includes a simple test of file permissions:os.WriteFile a file with 0o444 permissions (read-onl...

Golang Asymmetric incompatibility of functions using func[H hash.Hash](h func() H, ...) vs func(h func() hash.Hash, ...)

Some newer standard libraries like crypto/hkdf started using the generics form of func[H hash.Hash](h func() H, ...). F...

Golang proposal: go/ast: add CommentsBetween helper function

Proposal DetailsWorking with go/ast and comments is hard (inserting/moving comments), but the current API of go/ast does...

Golang x/website: code in README.md is excessively HTML escaped

Go versionn/aOutput of go env in your module/workspace:n/aWhat did you do?Go to https://go.dev/src/cmd/compile/internal/...

Golang cmd/go: use os.Args[0] instead of "go" in the go command output

Proposal DetailsI'm maintaining a thin wrapper over go command called emgo. It adds to the go build command some useful ...

Golang mime: builtinTypes ".xml" defaults to "text/xml" instead of "application/xml"

Go versiongo version go1.23.0 windows/amd64Output of go env in your module/workspace:DNAWhat did you do?DNAWhat did you ...

Golang spec: methods of the embedded struct field won't be promoted in two cases

What is the URL of the page with the issue?https://go.dev/ref/spec#Struct_typesWhat is your user agent?Mozilla/5.0 (X11;...

Golang proposal: mime/multipart: add WriteFile method to mime/multipart.Writer for streamlined file uploads from io.Reader

Proposal DetailsAbstractThis proposal suggests adding a new method, WriteFile, to the mime/multipart.Writer type in the ...

Golang proposal: strings,bytes: add ReplaceOnce

Proposal Detailsas there many usage of Replace(old, new, 1).I Proposal to add ReplaceOnce to strings and bytes package. ...

Golang mime/quotedprintable: single line with only period cause message truncation when used in SMTP DATA

What version of Go are you using (go version)?$ go versiongo version devel go1.21-a618094c2a Sat Jul 8 13:45:19 2023 +07...

Golang mime: ParseMediaType can parse something FormatMediaType can't reformat

During fuzzing some custom HTTP request handling of my own I discovered a Content-Type #;*0="" which mime.ParseMediaType...

Golang mime/quotedprintable: support message with long lines

What version of Go are you using (go version)?$ go versiongo version go1.14.5 darwin/amd64Does this issue reproduce with...

Golang image/jpeg: Unable to decode concatenated JPEGs (MIME-less "MJPEG")

What did you do?Wrapping ffmpeg -i <url> -c:v mjpeg -f image2pipe - in a exec.Cmd and continuously decoding the co...

Golang net/http: still return the content on malformed MIME header line

Please answer these questions before submitting your issue. Thanks!What version of Go are you using (go version)?go vers...

Golang mime: BEncoding and QEncoding don't respect the 76 character line limit in RFC2047

As a continuation of Issue #12300, mime: BEncoding and QEncoding don't respect the 76 character line limit in RFC2047.He...

Golang x/tools/cmd/gorename: allow renaming to builtins

What did you do?While trying to rename a variable (func, etc..) to real the gorename tool panics.Suppose you have a main...

Golang x/tools/cmd/gorename: unsure how to use -from to specify renaming test

What did you do?Created a simple package "foo" in $GOPATH/src/foo with a single go file foo_test.go:package foo_testcons...

Golang x/tools/cmd/gorename: TestGeneratedFiles failures

#!watchflakesdefault <- pkg == "golang.org/x/tools/cmd/gorename" && test == "TestGeneratedFile...

Golang x/tools/cmd/gorename: creates a pkg/mod inside $GOPATH

What version of Go are you using (go version)?$ go versiongo version go1.13 darwin/amd64Does this issue reproduce with t...

Golang x/tools/cmd/gorename: rename failure sometimes wipes files clean

What version of Go are you using (go version)?go version go1.12.2 windows/amd64Does this issue reproduce with the latest...
上一页 下一页
.