This is a creation in Article, where the information may have evolved or changed.
In August 2015, go 1.5 was officially released, which is the sixth important version of Go.
This release includes a number of significant improvements, from c to go, and the complete removal of C code from the Go code base. Completely redesigned the garbage collector to reduce the garbage collector's pause time. Improved scheduler, which allows modifying the default Gomaxprocs value (number of concurrent execution Goroutines), can be modified from 1 to the number of logical CPUs. Improved linker, allowing the distributed go package to be linked to the GO program as a share library, can build go package to archive or share library, can be linked or loaded with C program (design doc)
Download
Interest, withdraw the steps of its source code construction, code document in go-go1.5/doc/install-source.html "Https://github.com/golang/go download"
An early reference, some tedious steps http://studygolang.com/articles/3188 how to build a Go 1.5 development environment from source code
Concept: 2 tool chains
Gc:go compiler and tools. This is the go compiler.
GCCGO:A more traditional compiler using the GCC back end, this is a gcc-based compiler
Http://golangtc.com/download Domestic Mirror, Golang was wall
Build
You can download the compiled binary version of 1.4 in golangtc.com and configure it, then execute the Src/all.bash as follows: Build complete
All TESTS PASSED
---
Installed Go for LINUX/AMD64 in/home/###/go/go-go1.5
Installed Commands In/home/###/go/go-go1.5/bin
You need to Add/home/###/go/go-go1.5/bin to your PATH.
Set up
After the build is complete, set the environment variables to use according to your own path.
Export goroot=/home/###/go/go-go1.5
Export path= $GOROOT/bin: $PATH
Export Gopath=/home/###/go/demo/myapp
Goroot/bin in front to prevent the go version of the system installation from being used
Gopath can set multiple paths
The settings for these paths can be referenced in the Http://www.cnblogs.com/ghj1976/archive/2013/02/16/2913350.html,GO language this place differs greatly from other languages, and many places must be executed in accordance with the agreed rules.
IDE Environment
Http://golangtc.com/download/liteide
After the download is installed, perform the./liteide, the following issues occur on the CENTOS7
./liteide:error while loading shared libraries:libpng12.so.0:cannot open Shared object file:no such file or directory
Even though the/lib64/libpng15.so soft link still shows libpng12.so.0:version ' png12_0 ' not found
From the http://libpng.sourceforge.net/libpng12 version, download and install the compilation, copy the. so file to ###/go/liteide-qt/lib/liteide and execute it.
After the configuration is complete, try this full-text search in Oschina, which is a faster go language.
Https://github.com/huichen/wukong