salmon-account-74572
09/24/2020, 10:09 PMinterface{}
, how would I convert the value of that variable to a string?important-appointment-55126
09/24/2020, 10:20 PMfoo.(string)
https://play.golang.org/p/Cp3EAcdUeRnsalmon-account-74572
09/24/2020, 10:22 PMfoo.(string)
(type assertion, I believe that's called?) doesn't work. Go gives a "panic: interface conversion" error.important-appointment-55126
09/24/2020, 10:22 PMsalmon-account-74572
09/24/2020, 10:23 PM[]interface{}
, but using ([]string)
doesn't work either.important-appointment-55126
09/24/2020, 10:24 PMsalmon-account-74572
09/24/2020, 10:26 PMrange
statement to loop over it and convert each element?important-appointment-55126
09/24/2020, 10:26 PMsalmon-account-74572
09/24/2020, 10:27 PMrange
on it, yes?important-appointment-55126
09/24/2020, 10:28 PMsalmon-account-74572
09/24/2020, 10:28 PMimportant-appointment-55126
09/24/2020, 10:29 PMsalmon-account-74572
09/24/2020, 10:46 PM