Go language backup

Source: Internet
Author: User
Tags install go

Curious, I followed suit and read the go language. I found it interesting and easy to use.

1. Configuration:

Compile the go language on Windows

Ensure that go files are stored in UTF-8 format without BOM characters.
1. Execute chcp 65001 in DOS // modify the code page to UTF-8; otherwise, compilation fails.
2. Change the DOS window font to new; otherwise, garbled characters are displayed.
3. The chcp does not seem to support batch file processing.
If you write a bat program for compilation and execution, failure is not a matter of your character.
4. For more information about Bom, see http://en.wikipedia.org/wiki/byte_order_mark. the editor notepad under Windows automatically adds three bytes at the beginning of the file when saving the UTF-8 file. The content is EF.
Bb BF. You can use vim or notepad ++ to edit the code. If editplus is used, mark "do not add byte order to UTF-8 file" in tool-Parameter Selection-file. No editplus? You can write a go file to delete the three bytes starting with the specified file. For ue, the character encoding contains "UTF-8 with no Bom"

5. The 8 GB downloaded here does not support Automatic addition of semicolons. The delete keyword is not supported either.

Install go language in source code


2. Getting Started (from coolshell)

Go language introduction (Part 1)

Simple go language (II)

Programming Language: the first version of Google go

3. Other content

Go Memory Model

4. Miscellaneous

Is the first half of the variable Declaration/function-defined style the same as that of JavaScript to ensure the interpreter's efficiency?

var
[]int = make([]int, 10)

 func
max(a
int,
b
int)int{}

 

Latency function, interface, function closure, multi-value return


Which of the following is false?

If C ++ embodies its design philosophy, and go is completely for engineering efficiency?

The design of the underlying language shows the shadows of many hardware. Language is really just a tool, just between software design and machine code.

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.