Go – Değişkenler

package main

import "fmt"

func main() {

    var a string = "ali erbey"
    fmt.Println(a)

    var b, c int = 12, 23
    fmt.Println(b, c)
 
    var d = true
    fmt.Println(d)

    var e bool
    fmt.Println(e)

    var f int
    fmt.Println(f)

    k := "short"
    fmt.Println(k)
}

ali erbey
12 23
true
false
0
short

 

alierbey | 18/07/2017

Leave a Reply