In a type switch statement, each case specifies a type followed by the keyword _______.

  • case
  • default
  • switch
  • type
In a type switch statement in Go, each case specifies a type followed by the keyword case. This allows for conditional execution based on the type of an interface value. The case keyword is used to define each type case, followed by the specific type.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *