forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'golang:master' into master
- Loading branch information
Showing
1,933 changed files
with
102,195 additions
and
33,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pkg crypto/tls, type ClientHelloInfo struct, Extensions []uint16 #32936 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pkg testing, method (*B) Context() context.Context #36532 | ||
pkg testing, method (*F) Context() context.Context #36532 | ||
pkg testing, method (*T) Context() context.Context #36532 | ||
pkg testing, type TB interface, Context() context.Context #36532 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pkg runtime, func GOROOT //deprecated #51473 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pkg hash/maphash, func Comparable[$0 comparable](Seed, $0) uint64 #54670 | ||
pkg hash/maphash, func WriteComparable[$0 comparable](*Hash, $0) #54670 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pkg testing, method (*B) Loop() bool #61515 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pkg bytes, func FieldsFuncSeq([]uint8, func(int32) bool) iter.Seq[[]uint8] #61901 | ||
pkg bytes, func FieldsSeq([]uint8) iter.Seq[[]uint8] #61901 | ||
pkg bytes, func Lines([]uint8) iter.Seq[[]uint8] #61901 | ||
pkg bytes, func SplitAfterSeq([]uint8, []uint8) iter.Seq[[]uint8] #61901 | ||
pkg bytes, func SplitSeq([]uint8, []uint8) iter.Seq[[]uint8] #61901 | ||
pkg strings, func FieldsFuncSeq(string, func(int32) bool) iter.Seq[string] #61901 | ||
pkg strings, func FieldsSeq(string) iter.Seq[string] #61901 | ||
pkg strings, func Lines(string) iter.Seq[string] #61901 | ||
pkg strings, func SplitAfterSeq(string, string) iter.Seq[string] #61901 | ||
pkg strings, func SplitSeq(string, string) iter.Seq[string] #61901 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pkg encoding, type BinaryAppender interface { AppendBinary } #62384 | ||
pkg encoding, type BinaryAppender interface, AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg encoding, type TextAppender interface { AppendText } #62384 | ||
pkg encoding, type TextAppender interface, AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg net/url, method (*URL) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg log/slog, method (Level) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg log/slog, method (*LevelVar) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg math/big, method (*Float) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg math/big, method (*Int) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg math/big, method (*Rat) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg regexp, method (*Regexp) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg time, method (Time) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg time, method (Time) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg math/rand/v2, method (*ChaCha8) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg math/rand/v2, method (*PCG) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg crypto/x509, method (OID) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg crypto/x509, method (OID) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg net, method (IP) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (Addr) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (Addr) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (AddrPort) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (AddrPort) AppendText([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (Prefix) AppendBinary([]uint8) ([]uint8, error) #62384 | ||
pkg net/netip, method (Prefix) AppendText([]uint8) ([]uint8, error) #62384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pkg testing, method (*B) Chdir(string) #62516 | ||
pkg testing, method (*F) Chdir(string) #62516 | ||
pkg testing, method (*T) Chdir(string) #62516 | ||
pkg testing, type TB interface, Chdir(string) #62516 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pkg go/types, method (*Interface) EmbeddedTypes() iter.Seq[Type] #66626 | ||
pkg go/types, method (*Interface) ExplicitMethods() iter.Seq[*Func] #66626 | ||
pkg go/types, method (*Interface) Methods() iter.Seq[*Func] #66626 | ||
pkg go/types, method (*MethodSet) Methods() iter.Seq[*Selection] #66626 | ||
pkg go/types, method (*Named) Methods() iter.Seq[*Func] #66626 | ||
pkg go/types, method (*Scope) Children() iter.Seq[*Scope] #66626 | ||
pkg go/types, method (*Struct) Fields() iter.Seq[*Var] #66626 | ||
pkg go/types, method (*Tuple) Variables() iter.Seq[*Var] #66626 | ||
pkg go/types, method (*TypeList) Types() iter.Seq[Type] #66626 | ||
pkg go/types, method (*TypeParamList) TypeParams() iter.Seq[*TypeParam] #66626 | ||
pkg go/types, method (*Union) Terms() iter.Seq[*Term] #66626 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pkg net/http, type HTTP2Config struct #67813 | ||
pkg net/http, type HTTP2Config struct, CountError func(string) #67813 | ||
pkg net/http, type HTTP2Config struct, MaxConcurrentStreams int #67813 | ||
pkg net/http, type HTTP2Config struct, MaxDecoderHeaderTableSize int #67813 | ||
pkg net/http, type HTTP2Config struct, MaxEncoderHeaderTableSize int #67813 | ||
pkg net/http, type HTTP2Config struct, MaxReadFrameSize int #67813 | ||
pkg net/http, type HTTP2Config struct, MaxReceiveBufferPerConnection int #67813 | ||
pkg net/http, type HTTP2Config struct, MaxReceiveBufferPerStream int #67813 | ||
pkg net/http, type HTTP2Config struct, PermitProhibitedCipherSuites bool #67813 | ||
pkg net/http, type HTTP2Config struct, PingTimeout time.Duration #67813 | ||
pkg net/http, type HTTP2Config struct, SendPingTimeout time.Duration #67813 | ||
pkg net/http, type HTTP2Config struct, WriteByteTimeout time.Duration #67813 | ||
pkg net/http, type Server struct, HTTP2 *HTTP2Config #67813 | ||
pkg net/http, type Transport struct, HTTP2 *HTTP2Config #67813 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- | ||
NOTE: In this document and others in this directory, the convention is to | ||
set fixed-width phrases with non-fixed-width spaces, as in | ||
`hello` `world`. | ||
--> | ||
|
||
<style> | ||
main ul li { margin: 0.5em 0; } | ||
</style> | ||
|
||
## DRAFT RELEASE NOTES — Introduction to Go 1.24 {#introduction} | ||
|
||
**Go 1.24 is not yet released. These are work-in-progress release notes. | ||
Go 1.24 is expected to be released in February 2025.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Changes to the language {#language} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Tools {#tools} | ||
|
||
### Go command {#go-command} | ||
|
||
### Cgo {#cgo} | ||
|
||
Cgo currently refuses to compile calls to a C function which has multiple | ||
incompatible declarations. For instance, if `f` is declared as both `void f(int)` | ||
and `void f(double)`, cgo will report an error instead of possibly generating an | ||
incorrect call sequence for `f(0)`. New in this release is a better detector for | ||
this error condition when the incompatible declarations appear in different | ||
files. See [#67699](/issue/67699). | ||
|
||
### Vet | ||
|
||
The new `tests` analyzer reports common mistakes in declarations of | ||
tests, fuzzers, benchmarks, and examples in test packages, such as | ||
malformed names, incorrect signatures, or examples that document | ||
non-existent identifiers. Some of these mistakes may cause tests not | ||
to run. | ||
|
||
This analyzer is among the subset of analyzers that are run by `go test`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Runtime {#runtime} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Compiler {#compiler} | ||
|
||
## Assembler {#assembler} | ||
|
||
## Linker {#linker} | ||
|
||
## Bootstrap {#bootstrap} | ||
|
||
<!-- go.dev/issue/64751 --> | ||
As mentioned in the [Go 1.22 release notes](/doc/go1.22#bootstrap), Go 1.24 now requires | ||
Go 1.22.6 or later for bootstrap. | ||
We expect that Go 1.26 will require a point release of Go 1.24 or later for bootstrap. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## Standard library {#library} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Minor changes to the library {#minor_library_changes} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
API changes and other small changes to the standard library go here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The `(*Writer).AddFS` implementations in both `archive/zip` and `archive/tar` | ||
now write a directory header for an empty directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
The [bytes] package adds several functions that work with iterators: | ||
- [Lines] returns an iterator over the | ||
newline-terminated lines in the byte slice s. | ||
- [SplitSeq] returns an iterator over | ||
all substrings of s separated by sep. | ||
- [SplitAfterSeq] returns an iterator | ||
over substrings of s split after each instance of sep. | ||
- [FieldsSeq] returns an iterator over | ||
substrings of s split around runs of whitespace characters, | ||
as defined by unicode.IsSpace. | ||
- [FieldsFuncSeq] returns an iterator | ||
over substrings of s split around runs of Unicode code points satisfying f(c). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The value returned by [md5.New] now also implements the [encoding.BinaryAppender] interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The value returned by [sha1.New] now also implements the [encoding.BinaryAppender] interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The values returned by [sha256.New] and [sha256.New224] now also implement the [encoding.BinaryAppender] interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The values returned by [sha512.New], [sha512.New384], [sha512.New512_224] and [sha512.New512_256] now also implement the [encoding.BinaryAppender] interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The [ClientHelloInfo] struct passed to [Config.GetCertificate] now includes an `Extensions` field, which can be useful for fingerprinting TLS clients.<!-- go.dev/issue/32936 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[OID] now implements the [encoding.BinaryAppender] and [encoding.TextAppender] | ||
interfaces. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Two new interfaces, [TextAppender] and [BinaryAppender], have been | ||
introduced to append the textual or binary representation of an object | ||
to a byte slice. These interfaces provide the same functionality as | ||
[TextMarshaler] and [BinaryMarshaler], but instead of allocating a new slice | ||
each time, they append the data directly to an existing slice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
When marshaling, a struct field with the new `omitzero` option in the struct field | ||
tag will be omitted if its value is zero. If the field type has an `IsZero() bool` | ||
method, that will be used to determine whether the value is zero. Otherwise, the | ||
value is zero if it is [the zero value for its type](/ref/spec#The_zero_value). | ||
|
||
If both `omitempty` and `omitzero` are specified, the field will be omitted if the | ||
value is either empty or zero (or both). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[UnmarshalTypeError.Field] now includes embedded structs to provide more detailed error messages. |
Oops, something went wrong.