2.1. Go language course

发布时间 : 2025-10-25 13:32:56 UTC      

Page Views: 9 views

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Go was developed by Robert Griesemer, Rob Pike, Ken Thompson at the end of 2007, and later joined Ian Lance Taylor, Russ Cox and others, and finally opened source in November 2009, and released a stable version of Go 1in early 2012. Now the development of Go is completely open and has an active community.

/media/sphinx_tuto/img/go128.png

2.1.1. Go language features #

  • Concise, fast and safe

  • Parallel, interesting, open source

  • Memory management, array security, fast compilation

2.1.2. Go language usage #

The Go language is designed to be used in carrying Web system programming language for servers, storage clusters or giant central servers for similar purposes.

For the field of high-performance distributed systems Go languages are undoubtedly more efficient than most other languages. It provides massive support for parallelism, which is great for game server development.

2.1.3. The first Go program #

Next, let’s write the first Go program hello.go ( Go extension of the language source file is .go ), the code is as follows:

2.1.4. hello.go file #

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

To execute Go language code can be used go run orders.

Execute the above code output:

$ go run hello.go Hello, World! 

In addition, we can also use go build command to generate binaries:

$ go build hello.go $ ls hello hello.go $ ./hello Hello, World! 
《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。