This is a tracking issue for doing an audit of API additions for Go 1.25 as of CL 676895.

New API changes for Go 1.25

crypto

  • func SignMessage(Signer, io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405
  • type MessageSigner interface { Public, Sign, SignMessage } #63405
  • type MessageSigner interface, Public() PublicKey #63405
  • type MessageSigner interface, Sign(io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405
  • type MessageSigner interface, SignMessage(io.Reader, []uint8, SignerOpts) ([]uint8, error) #63405

crypto/ecdsa

  • func ParseRawPrivateKey(elliptic.Curve, []uint8) (*PrivateKey, error) #63963
  • func ParseUncompressedPublicKey(elliptic.Curve, []uint8) (*PublicKey, error) #63963
  • method (*PrivateKey) Bytes() ([]uint8, error) #63963
  • method (*PublicKey) Bytes() ([]uint8, error) #63963

crypto/sha3

  • method (*SHA3) Clone() (hash.Cloner, error) #69521

crypto/tls

  • type Config struct, GetEncryptedClientHelloKeys func(*ClientHelloInfo) ([]EncryptedClientHelloKey, error) #71920
  • type ConnectionState struct, CurveID CurveID #67516

debug/elf

  • const PT_RISCV_ATTRIBUTES = 1879048195 #72843
  • const PT_RISCV_ATTRIBUTES ProgType #72843
  • const SHT_RISCV_ATTRIBUTES = 1879048195 #72843
  • const SHT_RISCV_ATTRIBUTES SectionType #72843

go/ast

  • const FilterFuncDuplicates //deprecated #73088
  • const FilterImportDuplicates //deprecated #73088
  • const FilterUnassociatedComments //deprecated #73088
  • func FilterPackage //deprecated #73088
  • func MergePackageFiles //deprecated #73088
  • func PackageExports //deprecated #73088
  • func PreorderStack(Node, []Node, func(Node, []Node) bool) #73319
  • type MergeMode //deprecated #73088

go/parser

  • func ParseDir //deprecated #71122

go/token

  • method (*FileSet) AddExistingFiles(...*File) #73205

go/types

  • const FieldVar = 6 #70250
  • const FieldVar VarKind #70250
  • const LocalVar = 2 #70250
  • const LocalVar VarKind #70250
  • const PackageVar = 1 #70250
  • const PackageVar VarKind #70250
  • const ParamVar = 4 #70250
  • const ParamVar VarKind #70250
  • const RecvVar = 3 #70250
  • const RecvVar VarKind #70250
  • const ResultVar = 5 #70250
  • const ResultVar VarKind #70250
  • func LookupSelection(Type, bool, *Package, string) (Selection, bool) #70737
  • method (*Var) Kind() VarKind #70250
  • method (*Var) SetKind(VarKind) #70250
  • method (VarKind) String() string #70250
  • type VarKind uint8 #70250

hash

  • type Cloner interface { BlockSize, Clone, Reset, Size, Sum, Write } #69521
  • type Cloner interface, BlockSize() int #69521
  • type Cloner interface, Clone() (Cloner, error) #69521
  • type Cloner interface, Reset() #69521
  • type Cloner interface, Size() int #69521
  • type Cloner interface, Sum([]uint8) []uint8 #69521
  • type Cloner interface, Write([]uint8) (int, error) #69521
  • type XOF interface { BlockSize, Read, Reset, Write } #69518
  • type XOF interface, BlockSize() int #69518
  • type XOF interface, Read([]uint8) (int, error) #69518
  • type XOF interface, Reset() #69518
  • type XOF interface, Write([]uint8) (int, error) #69518

hash/maphash

  • method (*Hash) Clone() (hash.Cloner, error) #69521

io/fs

  • func Lstat(FS, string) (FileInfo, error) #49580
  • func ReadLink(FS, string) (string, error) #49580
  • type ReadLinkFS interface { Lstat, Open, ReadLink } #49580
  • type ReadLinkFS interface, Lstat(string) (FileInfo, error) #49580
  • type ReadLinkFS interface, Open(string) (File, error) #49580
  • type ReadLinkFS interface, ReadLink(string) (string, error) #49580

log/slog

  • func GroupAttrs(string, ...Attr) Attr #66365
  • method (Record) Source() *Source #70280

mime/multipart

  • func FileContentDisposition(string, string) string #46771

net/http

  • func NewCrossOriginProtection() *CrossOriginProtection #73626
  • method (*CrossOriginProtection) AddInsecureBypassPattern(string) #73626
  • method (*CrossOriginProtection) AddTrustedOrigin(string) error #73626
  • method (*CrossOriginProtection) Check(*Request) error #73626
  • method (*CrossOriginProtection) Handler(Handler) Handler #73626
  • method (*CrossOriginProtection) SetDenyHandler(Handler) #73626
  • type CrossOriginProtection struct #73626

os

  • method (*Root) Chmod(string, fs.FileMode) error #67002
  • method (*Root) Chown(string, int, int) error #67002
  • method (*Root) Chtimes(string, time.Time, time.Time) error #67002
  • method (*Root) Lchown(string, int, int) error #67002
  • method (*Root) Link(string, string) error #67002
  • method (*Root) MkdirAll(string, fs.FileMode) error #67002
  • method (*Root) ReadFile(string) ([]uint8, error) #73126
  • method (*Root) Readlink(string) (string, error) #67002
  • method (*Root) RemoveAll(string) error #67002
  • method (*Root) Rename(string, string) error #67002
  • method (*Root) Symlink(string, string) error #67002
  • method (*Root) WriteFile(string, []uint8, fs.FileMode) error #73126

reflect

  • func TypeAssert[$0 interface{}](Value) ($0, bool) #62121

runtime

  • func SetDefaultGOMAXPROCS() #73193

runtime/trace

  • func NewFlightRecorder(FlightRecorderConfig) *FlightRecorder #63185
  • method (*FlightRecorder) Enabled() bool #63185
  • method (*FlightRecorder) Start() error #63185
  • method (*FlightRecorder) Stop() #63185
  • method (*FlightRecorder) WriteTo(io.Writer) (int64, error) #63185
  • type FlightRecorder struct #63185
  • type FlightRecorderConfig struct #63185
  • type FlightRecorderConfig struct, MaxBytes uint64 #63185
  • type FlightRecorderConfig struct, MinAge time.Duration #63185

sync

  • method (*WaitGroup) Go(func()) #63796

testing

  • method (*B) Attr(string, string) #43936
  • method (*B) Output() io.Writer #59928
  • method (*F) Attr(string, string) #43936
  • method (*F) Output() io.Writer #59928
  • method (*T) Attr(string, string) #43936
  • method (*T) Output() io.Writer #59928
  • type TB interface, Attr(string, string) #43936
  • type TB interface, Output() io.Writer #59928

testing/fstest

  • method (MapFS) Lstat(string) (fs.FileInfo, error) #49580
  • method (MapFS) ReadLink(string) (string, error) #49580

testing/synctest

  • func Test(*testing.T, func(*testing.T)) #67434
  • func Wait() #67434

unicode

  • var CategoryAliases map[string]string #70780
  • var Cn *RangeTable #70780
  • var LC *RangeTable #70780

CC @aclements, @ianlancetaylor, @golang/release.

Comment From: gabyhelp

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: mateusz834

Also see #73937

Comment From: cherrymui

debug/elf, hash/maphash, os, reflect, runtime, runtime/trace, sync, and testing/synctest LGTM.

Comment From: cherrymui

@findleyr mentioned offline that go/* packages look good.