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
v
[]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.