5 ms·You should use switch v := i.(type) so you can access v as the type in a case.by arnehormann 12y agoYou should use switch v := i.(type) so you can access v as the type in a case.