Skip to content

Adopt Go 1.26 #85

@karolz-ms

Description

@karolz-ms

Go 1.26 has shipped with many improvements https://go.dev/doc/go1.26 , we should adopt it when opportunity arises.

Things that caught my attention that might be helpful for us:

  • Generic types can refer to themselves https://go.dev/doc/go1.26#language
  • New Buffer.Peek method returns next n bytes from buffer without advancing it
  • New errors.AsType funtion is a generic, safer version of errors.As
  • New Dialer methods are cancellable (take context.Context)
  • On Windows, OpenFile now allows any combination of Windows-specific flags

Metadata

Metadata

Assignees

Labels

engineeringIssue is related to engineering system (build/publishing infrastructure)performanceIssue makes DCP slower than necessary

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions