You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A type switch is like a regular switch statement, but the cases in a type switch specify types (not values), and those values are compared against the type of the value held by the given interface value.
// switch v := i.(type) {
// case T:
// // here v has type T
// case S:
// // here v has type S
// default:
// // no match; here v has the same type as i
// }
// Here we use the type keywords in the switch declaration