![]() If opening an existing project, IntelliJ IDEA should automatically detect it as a Go project and prompt you for any further action if required, i.e. Once you have the project created, you can simple add Go Files and Run/Debug them straight from IntelliJ IDEA The plugin provides an entry in the Project Wizard to create projects and additionally select frameworks and libraries Simply add a new repository (choose between nightly or alpha) and you can then install it from inside IntelliJ IDEA. The instructions to install the plugin on the project page are pretty clear. There is an open source Go plugin for IntelliJ IDEA, and in the last year or so, two of my colleagues, in particular Alexander ZolotovĪnd Sergey Ignatov are proactively contributing to it. The installer creates a symbolic link to the Go executable under /usr/local/bin/go. don’t go placing your projects in different folders all over your hard-drive.Īlso, for things to work correctly, make sure that the GOPATH is on your system path. In my case this wasĪpparently, and someone please correct me if I’m wrong, you should kind of keep within this structure with Go, i.e. The GOPATH environment variable points to the root folder of where you want this structure. Go likes to organize things under a work directory which has the following tree structure ![]() The instructions on the Go site are pretty straightforward. In other words, basically check that hello.go works. I’m using version 1.5, after unsuccessfully messing around with 1.3 installed via brew.īefore configuring IntelliJ IDEA, it’s good to make sure Go is properly working. The easiest way I found was to just download the installer package from the WebSite and click my way through it. Installing Goįirst and foremost you need to install Go. While it was pretty straightforward, there are a few things worth mentioning.ĭisclaimer: I’m completely new to Go, so if you spot any mistakes, please let me know. Once Hello World was running, the next step was to try and I’ve recently started playing with Go for some TCP code I’m working on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |