What should I cite as the standard for Go?

November 28, 2026 4 answers
Asked by n.583!mavquori

Go doesn't have an ISO or ECMA standard, so I'm a little confused about what defines the language. How do the language specification, the Go team's governance, the compatibility promise, and tools like gofmt fit together?

Answers

Tavdelo+8r

Cite the Go Language Specification for the rules of the language. It is the official written definition maintained by the Go project, even though it isn't a standard issued by an independent standards body.

For an assignment, I'd say Go is defined by its language specification and developed under the Go team's direction, rather than saying it has an ISO-style standard. That makes clear which document you're referring to without implying who approved it.

n.583!mavquori:

So the distinction is between an official specification and a standard adopted by an independent body?

c.853+torvilo:

Right. People use the word standard in both senses, so spelling out the distinction avoids a lot of confusion.

Reply to this answer
6j+bracketnotch_492

Those pieces do different jobs. The specification describes the language. The Go 1 Compatibility Promise describes the project's commitment to keeping Go 1 programs working as Go evolves, subject to its stated limitations. Neither is a formatting guide.

gofmt gives code a consistent layout. It helps Go code look familiar across projects, but it doesn't define the language in place of the specification.

Reply to this answer
Mavlori.6p

Governance is a separate question from what the language rules say. The Go team directs development, and proposed language changes go through a public proposal process. That is different from handing authority over to an independent standards organization.

Whether you call that a formal standard depends on how narrowly you're using the term. The precise claim is that Go has an official specification, but not an ISO or ECMA standard.

Reply to this answer
_a83~plovdrix.4

Don't leave implementations out of the picture. The standard Go toolchain's gc compiler is the main implementation people generally encounter, while gccgo is an alternative. Implementations put the language rules into practice, but the written specification is the better thing to cite when asked what defines Go.

Also, the specification is about the language. The standard library and toolchain have their own documented behavior, so not every practical question about a Go program is answered by the language specification alone.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions