A set with empty structs

Report a typo

Your task is to create a set named mySet with the string type for keys and the empty struct type for values.

The set can have as many keys as you want; you can get creative! Just remember to use the empty struct type for values!

Tip: Remember that an empty struct is expressed via the struct{}{} syntax.

Write a program in Go
package main

import "fmt"

func main() {
// Create a set named 'mySet' with an empty struct as the value type below.
// The set can have as many keys as you want; you can get creative!
mySet := ?


checkSetTypeValues(mySet) // DO NOT delete this line!
}
___

Create a free account to access the full topic