by @yrezgui
Yacine Rezgui — @yrezgui
French-Tunisian
Developer Evangelist
IBM Watson
Golang feels like a scripting language, but with the elegance and speed of C.
package main
import "fmt"
const g string = "constant"
func main() {
var a string = "initial"
fmt.Println(a)
var b, c int = 1, 2
fmt.Println(b, c)
var d = true
fmt.Println(d)
var e int
fmt.Println(e)
f := "short"
fmt.Println(f + " " + g)
}