I figured out the answer, which is to cast n to interface{} before the type assertion:
switch v := interface{}(n).(type)
I figured out the answer, which is to cast n to interface{} before the type assertion:
switch v := interface{}(n).(type)