1go command - cmd/go - Go Packages
error to do so (e.g. "go build main.go" or "go build *.go"). Instead prefer to operate on complete packages (directories), such as: "go build ." Package names…invocation of "go vet" during "go test" to use the comma-separated list of vet checks. If list is empty, "go test" runs "go vet" with
2cgo command - cmd/cgo - Go Packages
enables the creation of Go packages that call C code. Using cgo with the go command ¶To use cgo write normal Go code that imports a pseudo-package…Go code can then refer to types such as C.size_t, variables such as C.stdout, or functions such as C.putchar. If the import of "C" is immediately preceded by a comment, that

go.dev
doc › devel › release
3Release History - The Go Programming Language
This page summarizes the changes between official stable releases of Go. The change log has the full details. To update to a specific release, use: git fetch --tags git checkout goX.Y.Z Release…Policy Each major Go release is supported until there are two newer major releases. For example, Go 1.5 was supported until the Go 1.7 release, and Go
4Go Wiki: Home - The Go Programming Language
Welcome to the Go wiki, a collection of information about the Go Programming Language. Awesome Go is another great resource for Go programmers, curated…Go community. If you can’t find what you need on this page, see the list of all pages. Questions about Go See Questions. Contributing If you would like

go.dev
pkg › encoding › json › v2
5json package - encoding/json/v2 - Go Packages
with JSON tutorial for an introduction to this package. Marshal and Unmarshal encode and decode Go values to/from JSON text contained within a []byte. MarshalWrite and UnmarshalRead operate on JSON text…semantic behavior of marshaling and unmarshaling (i.e., alter how JSON data is understood as Go data and vice versa). jsontext.Options may also be passed to the marshal or unmarshal functions to configure

go.dev
doc › modules › gomod-ref
6go.mod file reference - The Go Programming Language
Each Go module is defined by a go.mod file that describes the module’s properties, including its dependencies on other modules and on versions of Go. These properties include: The current…module path. This should be a location from which the module can be downloaded by Go tools, such as the module code’s repository location. This serves as a unique identifier, when combined

go.dev
blog › using-go-modules
7Using Go Modules - The Go Programming Language
Introduction This post is part 1 in a series. Part 1 — Using Go Modules (this post) Part 2 — Migrating To Go Modules Part 3 — Publishing Go…Modules Part 4 — Go Modules: v2 and Beyond Part 5 — Keeping Your Modules Compatible Note: For documentation on managing dependencies with modules, see Managing dependencies. Go

go.dev
doc › modules › managing-dependencies
8Managing dependencies - The Go Programming Language
modules) become dependencies. Over time, you may need to upgrade them or replace them. Go provides dependency management tools that help you keep your Go applications secure as you incorporate…manage dependencies you take on in your code. You can perform most of these with Go tools. This topic also describes how to perform a few other dependency-related tasks you might
9Go Wiki: Go talks - The Go Programming Language
curated and searchable index, try GopherVids from Damian Gryski. Official Introductory Talks An introduction to Go. Russ Cox’s Tour of Go [video and discussion] Three things that make Go…productive:interfaces, reflection, and concurrency. Builds a toy web crawler to demonstrate these. Go: a simple programming environment [video] [another video] [slides] Go is a general-purpose language that bridges

go.dev
blog › migrating-to-go-modules
10Migrating to Go Modules - The Go Programming Language
Introduction This post is part 2 in a series. Part 1 — Using Go Modules Part 2 — Migrating To Go Modules (this post) Part 3 — Publishing Go…Modules Part 4 — Go Modules: v2 and Beyond Part 5 — Keeping Your Modules Compatible Note: For documentation, see Managing dependencies and Developing and publishing modules. Go projects