Can a function in Go accept a function as a parameter?
Which keyword is used to define a function in Go?
What is the keyword used to declare a constant in Go?
Which of the following is NOT a way to handle errors in Go?
What is a function signature in Go?
Which of the following is a valid way to check for an error in Go?
What is an interface in Go?
Which of the following is the correct syntax to define a function that takes a pointer as an argument in Go?
What is the output of the following Go program?
package main
import "fmt"
func main() {
x := map[string]int{"one": 1, "two": 2, "three": 3}
for key, value := range x {
if value == 2 {
delete(x, key)
}
}
fmt.Println(len(x))
}
Which of the following is true about passing a pointer to a function in Go?