afaik, it’s impossible.Even if no type appears in the assignment/declaration of a , it’s as if you wrote this : https://play.golang.org/p/JWj-ajWFrcK
Even if underground, strong typing is at work.
go is a typed language. Thus you cannot assign different types to the same variable like in Python or Javascript. You have to use blocks to separate the variables or use different variable names.