← GolangChallenge.com

Coding · Facts & stats

Go facts & stats

7 fact-checked facts about the Go programming language, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

What is the name of Go's mascot?

AnswerThe Gopher

Go's mascot is a gopher designed by Renee French.

Which command runs a Go program directly from source?

Answergo run

go run compiles and runs the named package or file.

Going deeper

Which operator declares and initializes a variable with type inference inside a function?

Answer:=

Short variable declaration x := 1 infers the type.

What is used to send and receive values between goroutines?

AnswerChannels

Channels are typed conduits for communicating between goroutines.

How does Go mark an identifier as exported from a package?

AnswerIts name starts with a capital letter

Capitalized names are visible outside their package.

Expert level

Go 1.18 added which major language feature in 2022?

AnswerGenerics

Type parameters, known as generics, arrived in Go 1.18.

Which statement lets a goroutine wait on multiple channel operations?

Answerselect

select blocks until one of its channel cases can proceed.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round