Ubuntu 14.04 under Configuration Go 1.51

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

1. Simplest direct way (without setting goroot)

-Download the archive and unzip it to /usr/local/go/

-Set Environment variables

-Set the system-level

gedit/etc/profile# Add the following line at the end of the export PATH= $PATH:/usr/local/go/bin

-or set the user-level export path= $PATH:/usr/local/go/bin to the $HOME/.profile file.

-Logout

2. Installing to a custom location (e.g. $HOME/go )

-Download the archive and unzip it

-Add the following environment variable to the $HOME/.profile file

Export goroot= $HOME/goexport PATH= $PATH: $GOROOT/bin

-Logout

3. Installing Liteide

If the Golang is installed according to 1, then download a liteide extract directly to run.

My shortcut Habits settings (view--options)

ctrl+shift+k Deleting rows

ctrl+d Copy rows/duplicates

ctrl+shift+/ Toggle block Comment

ctrl+/ Toggle Annotations

ctrl+l Clipping line

ctrl+f Search, default is ctrl+shift+f

ctrl+b Build

Ctrl+r Run/build and Run

Ctrl + ' Execute file

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.