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

selenium javascript alert box

This is a easy task to capture javascript based alertbox , /* * To change this license header, choose License Headers in Project Properti...