We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context: https://go.dev/tour/methods/16
func do(i interface{}) { switch v := i.(type) { case int: fmt.Printf("Twice %v is %v\n", v, v*2) case string: fmt.Printf("%q is %v bytes long\n", v, len(v)) default: fmt.Printf("I don't know about type %T!\n", v) } }
I am curious about the indention of switch case, after format I thought it will be like this:
Is that intention or any other special purpose? or future update will it re-indention?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context: https://go.dev/tour/methods/16
I am curious about the indention of switch case, after format I thought it will be like this:
Is that intention or any other special purpose? or future update will it re-indention?
The text was updated successfully, but these errors were encountered: