Latest web development tutorials

Go language tutorial

Go is an open source programming language, which allows a simple structure, reliable, and efficient software easier.

Go from the end of 2007, presided over by Robert Griesemer, Rob Pike, Ken Thompson developed, and later joined Ian Lance Taylor, Russ Cox et al., And finally in November 2009 open source, released in early 2012, Go 1 stable version. Go now been developed is completely open and has an active community.


Go Language Features

  • Simple, fast, secure
  • Parallel, funny, open source
  • Memory management, v arrays safe, fast compile

Go language use

Go language is designed to be used in carrying a Web server, storage cluster or similar purposes giant central server systems programming language.

For high-performance distributed systems, Go language than most other languages ​​certainly has a higher development efficiency. It provides support for the massively parallel, this is the best thing for the development of the game in terms of service end.


The first Go program

Next we come to write the first Go program hello.go (Go language source file extension is .go), the code is as follows:

Examples

package main

import "fmt"

func main () {
fmt.Println ( "Hello, World!")
}

Running instance »

Execute the above code output

$ go run hello.go 
Hello, World!