A Quirk Regarding Type Assertions and Switch Statements in Go
Jan 2, 2024 · 2 min read · During my journey of learning Go, I've come across a confusing yet interesting quirk regarding type assertions. I've learned that when running a switch statement on a value's type, you can match a type that is different than the value's declared type...
Join discussion



