Shortest way / Shorthand to declare variable in go
Question: We can use the following syntax for go variable declaration

    
    
    var num int
    var str string
    

but is there any shorthand in go for doing the same thing?

for example we can do so in python simply saying:

    
    
    num = 13
    strings = "Hello World"
    

or even

    
    
    num, strings = 13,"Hello World" 
    


Answer: The [variable declaration](http://golang.org/ref/spec#Variable_declarations)
can initialize multiple variables:

    
    
    var x, y float32 = -1, -2
    

Or (short variable declaration with `:=`)

    
    
    i, j := 0, 10
    

So this would work: [play.golang.org](http://play.golang.org/p/ytzTJRKQN5)

    
    
    package main
    
    import "fmt"
    
    func main() {
        a, b := 1, "e"
        fmt.Printf("Hello, playground %v %v", b, a)
    }
    

Output:

    
    
    Hello, playground e 1
    

