This is a creation in Article, where the information may have evolved or changed.
Go was officially released by Google in 2009.
Key Features of Go:
1. Type safety and memory security
2. Achieve high concurrency with intuitive and low-cost solutions
3. Efficient garbage collection mechanism
4. Fast compile (also solve the problem of too many header files in C language)
5. Provide performance improvement for multi-core computers
6.utf-8 encoding support, native support UTF-8
Practical applications and resources for go:
YouTube (Google), the world's largest video site
Seven Qiniu storage and network disk services (Q-disk)
Well-known companies that have used go development on the server: Google, Shanda Network, seven KN, 360.
Install the Go language:
Go source Installation
Go Standard Pack installation
Third-party tool installation
Go environment variables and working directory:
3 directories need to be created under Gopath:
Bin: Store the compiled executable file
PKG: Store the generated package files after compilation
SRC: Store Project source code
Command line: Go env display GO environment variable configuration
Go common commands:
Go get: Get remote package, need to install Git or Hg in advance
Go run: Run the program directly
Go BUILD: Test compilation, check for compilation errors
Go FMT: Formatted source (some Ides are automatically called when saved)
Go install: Compile the package file and compile the entire program
Go test: Run the testing file
Go doc: View documentation (CHM manual)
Browse Go official website in browser: command line input: godoc-http=:8080 can be entered in browser: localhost:8080 view