PRACTICE / UNDERSTAND / REPEAT

Go: Functions

Practice functions with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

15 questionsAnswers explainedFree · no login
Question 1 of 15
Functions · Code recallQuestion link ↗

Complete the keyword that declares this Go function.

___ greet(name string) {
    fmt.Println(name)
}
Answer & explanation

Answer: func

`func` declares a Go function.