local variable Golang tutorial 4

local variable Golang tutorial 4

Golang variable are very easy to declare and use. If you need a local variable . you need to declare it in “main” function.

func main(){
var a int // local variable
}

Source Code

package main
import "fmt"
func main(){
var a int
fmt.Print(a);
}

 

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: