Declaration in practice

Report a typo

Write the code to declare a new variable named mySlice as a slice of any type you like.

This problem uses the reflect package and the hidden function checkSolution() to check if you correctly declared the mySlice variable as a slice.
Write a program in Go
package main

import (
"fmt"
"reflect"
)

func main() {
// Declare a new variable named `mySlice` as a slice of any type you like below:
?

// DO NOT delete/modify the code below! It checks if you correctly declared `mySlice`:
_ = fmt.Print; _ = reflect.Struct; checkSolution(mySlice)
}
___

Create a free account to access the full topic