What does it mean to be followed by parentheses directly after the dot in golang?

1. Type conversion

value.(string)

2. Access type, usage scenarios are limited

switch value.(type) {

case string:

}

Guess you like

Origin blog.csdn.net/qq_32907195/article/details/112252341