Pages

5/22/2016

creating first go program

for creating go program open your editor and paste this code, and save it as filename.go for example helloworld.go

package main

import "fmt"

func main() {
    fmt.Println("Hello, 世界")
}

I will explain these codes in details for now , we will look how to run these code.

to run type go run helloworld.go  in terminal , we get


you can try golang online as well , golang

No comments:

Post a Comment

widget

installing perl dancer in ubuntu

For installing perl dancer you need curl utility for installing curl ,   sudo apt-get install curl Now we can install Perl-Dancer by thi...