Go language notepad++ Simple development environment Building (windows)

Source: Internet
Author: User

1. Download and install the Go language:
https://golang.org/dl/
Choose the corresponding platform, we recommend using MSI installation package, this will help you configure the environment variables (may need to restart)
The corresponding environment variables are:

Goroot-c:\go\
path-; C:\Go\bin

2. Installation notepad++ no more talking.

3.notepad++ Installation Plugin: GONPP

Run results are displayed on the right side after running


4. Syntax highlighting
(1) Download notepad++ 's Go Language support package (Http://notepad-plus.sourceforge.net/commun/userDefinedLang/go.zip)
(2) Decompression go.zip, get: Userdefinelang_go.xml go.xml
(3) Open the Userdefinelang_go.xml file, remove the first line of the file and the last line of comments, note is to remove the comment is not delete this line
(4) Place the Go.xml in the \plugins\apis folder of the notepad++ directory
(5) Restart notepad++

5. Quick Run
Through GONPP can be compiled in notapad++ run go, shortcut keys are alt+r

6. Command-line compilation run

Execute command in cmd: Go build test.go

The corresponding EXE file will be generated.

Go language notepad++ Simple development environment Building (windows)

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.