Programming with Go in Eclipse

Go, also known as Golang, is a statically typed, compiled programming language that makes it easy to build reliable and efficient software. Go is syntactically similar to C, but with the user friendliness of dynamically typed, interpreted languages, like Python. It boasts memory safety, garbage collection, structural typing, and CSP-style concurrency.

CodeMix is an Eclipse plugin that lets you add Go support to your IDE via Code OSS extensions. It is compatible with Eclipse-based IDEs and tools—like MyEclipse, Spring Tools Suite, and JBoss Tools—so you can continue working in the environment you are accustomed to.

Go Highlights

Project Creation

Go to File > New > Project > CodeMix and select Go Project to create a new Go template project. The wizard makes it easy to get started with Go, and will install the Go extension if required.


Eclipse + CodeMix + Go Extension

IntelliSense

From suggesting imports as you type, to providing signature help and documentation, the Go editor provides a distraction-free coding experience.


Eclipse + CodeMix + Go Extension

Debugging

A Go debugging session is easy to initiate. Use the debugger to set breakpoints, step through your code, inspect values, etc.


Eclipse + CodeMix + Go Extension

Navigation

Use the peek support to get a quick look at function definitions and/or easily jump to different Go files across your workspace. Use the quick outline (Ctrl/Cmd + O) to quickly get around the current file.


Eclipse + CodeMix + Go Extension

Validation

Beyond syntax validation, you also get the opportunity to lint your code using a linting tool like golint or gometalinter.


Eclipse + CodeMix + Go Extension

Commands

There are dozens of Go commands that help you with everything from fetching new packages and generating tests, to refactoring your code.


Eclipse + CodeMix + Go Extension