I am relatively new to go/ coding.I want to be able to reference a variable by using a variable.
var a = make([]int,0)
var b = make([]int,0)
var c = make([]int,0)
I have some slices defined
set := input.Ask("Which set would you like to input to (a, b, c):")
for true {
num := input.Ask("Number:")
strings.toLower(set) = append(strings.toLower(set), num)
}
I want the "strings.tolower" part output a string, which it does, that will allow me to select one of the variables I have defined.