The Go programming language
  • Go 95.1%
  • Assembly 4.5%
  • C 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ilya Torbin b7f9e52865 go/types: use range over typeset in sliceExpr
CL 688876 made typeset return an iterator and converted the types2
version of this code to a range loop, but left the go/types copy in
the explicit closure-invocation form with a TODO, as go1.23 could not
be assumed at the time. That constraint is gone and the rest of the
package already ranges over typeset, so convert this last call,
bringing sliceExpr back in sync with types2.

Change-Id: Ie68b01bb5f817b37a4ee97d05d2e75f81aa45270
Reviewed-on: https://go-review.googlesource.com/c/go/+/805720
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alex Putman <aputman@golang.org>
2026-07-29 07:11:32 -07:00
.github .github: update PULL_REQUEST_TEMPLATE to match the latest instruction 2026-05-26 15:10:06 -07:00
api go/parser: add func ResolveFile 2026-07-20 12:51:53 -07:00
doc cmd: update x/tools to master 2026-07-24 11:48:31 -07:00
lib lib/time: update to 2026c/2026c 2026-07-09 11:24:04 -07:00
misc
src go/types: use range over typeset in sliceExpr 2026-07-29 07:11:32 -07:00
test cmd/compile: fix time traveling proofs in prove 2026-07-28 17:00:28 -07:00
.gitattributes
.gitignore
codereview.cfg
CONTRIBUTING.md
go.env
LICENSE
PATENTS
README.md
SECURITY.md

The Go Programming Language

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Gopher image Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.

Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Download and Install

Binary Distributions

Official binary distributions are available at https://go.dev/dl/.

After downloading a binary release, visit https://go.dev/doc/install for installation instructions.

Install From Source

If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.

Contributing

Go is the work of thousands of contributors. We appreciate your help!

To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.

Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.