Tuesday, May 29, 2012

"Go" Language Tutorial-1

Welcome to a tour of the Go programming language.

The tour is divided into three sections. At the end of each section is a series of exercises for you to complete.

The tour is interactive. Click the Run button now (or type Shift-Enter) to compile and run the program on a remote server. The result is displayed below the code.

These example programs demonstrate different aspects of Go. The programs in the tour are meant to be starting points for your own experimentation.

Edit the program and run it again.

Whenever you're ready to move on, click the Next button or type the PageDown key.

 

Example:

package main

import "fmt"

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

output :
Hello, 世界

No comments:

Post a Comment