Go language under Windows Liteide

Source: Internet
Author: User
Tags install go

It's used today.

Just learn a bit.

Https://www.golangtc.com/t/56e7caf5b09ecc66b90000fe

On the internet to see a lot of this kind of introduction, the operation is too troublesome, I figured out how to configure.

Take Liteide x28 and go 1.6 For example, if you want to compile Win32 and Linux64:

1, the new C:\GoDev directory, after the installation is in this directory, of course, not built can also.
2, install Liteide. Download Liteidex28.windows-qt4.zip, unzip to C:\GoDev\liteide directory.
3, install go Win32. Download Go1.6.windows-386.zip, unzip to C:\GoDev\go directory.
4, merge Go linux64. Download go1.6.linux-amd64.tar.gz, unzip, the contents of which \go\pkg directory, in addition to include, all the rest of the copy to the C:\GoDev\go\pkg directory, overwrite (actually no coverage, the lower directory name is different). If you also want to compile other versions, you can merge similar.
5, run Liteide, toolbar select Win32, Edit current Environment button behind, open win32.env, modify the following line and save:
Goroot=c:\godev\go
6, the toolbar select cross-linux64, edit open cross-linux64.env, modify the following line and save:
Goroot=c:\godev\go

Complete. Write a small program, choose Win32 or CROSS-LINUX64, compile must be successful.
For other people to use, the entire directory copy used to be used directly.
Now go does not need to MinGW, but also saves the matter.

=============================

# Cross-compiler Linux Amd64goroot=d:\go#gobin=goarch=amd64goos=linuxcgo_enabled=0path=%goroot%\bin;%path%liteide _gdb=gdbliteide_make=mingw32-makeliteide_term=%comspec%liteide_termargs=liteide_exec=%comspec%liteide_execopt= /C

  

Go language under Windows Liteide

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.