Gnoseed
Programming · Flashcard

What is the syntax for declaring a basic function in Go?

Why this is the answer

Functions are declared as func name(params) returnType { ... }. The func keyword is also used for methods and anonymous functions.

Read more in the docs
Study in Gnoseed →