How to declare a map

Report a typo

Below you will see multiple declarations for the medals map; select all the declarations that don't have any syntax errors.

a)

medals = make(map[string]int)

b)

medals := make(map[string]int)

c)

var medals map[string]int
medals = make(map[string]int)

d)

var medals := make(map[string]int)
Select one or more options from the list
___

Create a free account to access the full topic