Go Language Learning (i)

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.


The Go programming language is an open source project dedicated to enabling developers to develop efficiencies and efficiency.

Go is expressive, concise, clear, and efficient. Its parallel mechanism makes it easy to write multicore and Web applications, while the novelty type system allows for the building of resilient modular programs. Go compiles to machine code very quickly, with convenient garbage collection and powerful runtime reflection. It is fast, static
Type compilation language, but it feels like a dynamic type, an interpreted language.

Learning go language from the Sansing translation of translation abstracts

http://golang.org/doc/This site contains learning documentation and go installation programs


——————————————————————————————— Split Line ———————————————————————————————————


At this time, I, the book has not read the first chapter, just finished the installation of Go. The installer under Windows has two types of zip and MSI.


The predecessor of Go comes from Inferno. The inferno contains a language called Limbo.

Limbo is a programming language for developing distributed applications that run on small computers. It supports modular programming, compile-time and runtime strong type checking, in-process based on the type of "channel" Communication, Atomic garbage collection, and simple abstract data types. It is designed for safe operation even on small devices with no hardware memory protection. (Under the trough, these two names are all good religions, probably is the designer prefers Dante's "Divine Comedy")

[Channel] is a communication machine used to send and receive specific types of objects to other agents in the system System. The channel can be used for local interprocess communication, and the Couffan method for connecting to a named destination . Both cases are directly sent and received operations.

From Sansing translation of "Learning Go Language"


The left image is the zip package extracted after the file directory (. msi installation directory files are the same, the size is 165MB, but. msi after the installation of space to 300+m), the difference between the zip and MSI, zip decompression, you need to configure the environment variables, The environment variable is added automatically if it is installed via MSI. . For Linux environments, please refer to The learning go language yourself.

Create a new variable named: Goroot variable value for your go root directory;

Add $goroot/bin in Path.

As with the Java Configuration environment variables, when you enter go in the console, you can see the list of commands in Go, which indicates that the variable configuration is in effect.


Although the grammar has not yet been learned, run the following program first, the usual Hello world!

1. Build a text file, enter it inside

Package Mainimport "FMT" Func Main () {    fmt. Printf ("Hello, world\n")}

2. Change the suffix name to. Go, then enter the location of the go run file in the console and then you will be able to see the console output

Hello, world

Let's get here first!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.