Use IntelliJ as the Golang IDE

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

intelliJJava is the development of a weapon, a very useful IDE, Android Studio is based on intelliJ the change, choose to use intelliJ as Golang the IDE, is very convenient.

Download IntelliJ

First to download http://www.jetbrains.com/idea/
intelliJDivided into Community Edition and Professional version, the recommended use of Professional version, if you do not want to pay, you can also consider the first implementation of the community version is free, the impact on doing Golang or Java development is very small, but use the community version of the intelliJ want to develop html , css and JavaScript It's not that convenient.

Installing the Golang Plugin

GolangPlugin is an open source project, Project address: Https://github.com/go-lang-pl ...

In intelliJ the Plugins can find Golang the plug-in, direct download can. But most of the time because everyone knows why, not sure to be able to search, or to be able to search and not necessarily be able to download, encountered this situation can go to the official web download corresponding jar包 manual installation.

Plugin Address: https://plugins.jetbrains.com/plugin/5047
Download the latest version of the Golang plugin.
Select install plugin form disk Install, you can see the plugin after the installation is complete Golang :

Configure the Go SDK

In the case of settings GOPATH , the intelliJ Go language directory is automatically found and can be configured if it is not found.
perferencesLanguages&Frameworks Go Go Libraries You can see GOPATH the configuration:

You can see directly using the system GOPATH , or you can + select GOPATH a location in.

Test

To create a new project, select the Go language:

To create main.go a new file, enter the code:

    package main    import "fmt"       func main(){        fmt.Println("hello go")    }

Direct operation, output result:

hello go
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.