Complete the code to declare a variable of type int with value 10.
var number [1] = 10
The keyword int declares an integer variable in Go.
Complete the code to declare a variable of type bool with value true.
var isActive [1] = trueThe type bool is used for true or false values in Go.
Fix the error in the code by choosing the correct type for the variable.
var price [1] = 19.99
The value 19.99 is a decimal number, so the variable must be float64.
Fill both blanks to create a map from string keys to int values.
var scores map[[1]][2]
Maps in Go use map[keyType]valueType. Here, keys are strings and values are integers.
Fill all three blanks to declare and initialize a slice of strings with three names.
var names = [][1]{"[2]", "[3]", "Alice"}
The slice holds strings, so the type is string. The names are "John", "Bob", and "Alice".
