Can you declared multiple types of variables in single declaration in Go?

Technology CommunityCategory: GolangCan you declared multiple types of variables in single declaration in Go?
VietMX Staff asked 3 years ago

Yes. Variables of different types can be declared in one go using type inference.

var a, b, c =  3,  4,  "foo"