Switches

Go

Go Type Switches: Dynamic Type Dispatch

Go’s type system walks a fine line between static typing and runtime flexibility. When you accept an interface{} or any parameter, you’re telling the compiler ‘I’ll handle whatever type comes…

Read more →