# Write Your Go Programs Using GEdit

DevFeed: [Write Your Go Programs Using GEdit](<https://devfeed.tech/articles/write-your-go-programs-using-gedit-22085.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2013/11/write-your-go-programs-using-gedit.html>)

Published: 2013-11-23T00:00:00Z

Content type: release

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [autosave](<https://devfeed.tech/topics/autosave.md>), [Python](<https://devfeed.tech/topics/python.md>), [Vim](<https://devfeed.tech/topics/vim.md>), [make](<https://devfeed.tech/topics/make.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Emacs](<https://devfeed.tech/topics/emacs.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [build](<https://devfeed.tech/tags/build.md>), [directory](<https://devfeed.tech/tags/directory.md>), [editor](<https://devfeed.tech/tags/editor.md>), [emacs](<https://devfeed.tech/tags/emacs.md>), [errors](<https://devfeed.tech/tags/errors.md>), [go](<https://devfeed.tech/tags/go.md>), [go-development](<https://devfeed.tech/tags/go-development.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [guest-post](<https://devfeed.tech/tags/guest-post.md>), [ide](<https://devfeed.tech/tags/ide.md>), [ides](<https://devfeed.tech/tags/ides.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-distros](<https://devfeed.tech/tags/linux-distros.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [scripts](<https://devfeed.tech/tags/scripts.md>), [shortcuts](<https://devfeed.tech/tags/shortcuts.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

## AI overview

The GoBuild plug-in for GEdit 3.x runs `go build` when a Go source file is saved; if the filename contains `_test.go`, it runs `go test` for that file's directory instead. The author describes GEdit's syntax highlighting, split windows and word wrapping, and notes that its External Tools plug-in can run `go build` manually and show errors that jump to their locations. GoBuild is written in Python, and some Python versions may require adjustments. The supplied excerpt ends before further plug-in details.

## Source excerpt

This is a guest post from Tad Vizbaras from Etasoft in South Florida. There are a number of editors and IDEs for Go development. LiteIde, Vim, Emacs and GEdit just to name a few. Each developer has their own favorite editor for each language they work with. Some like full featured IDE environments while others prefer speed over features. My personal favorite editors for Go development at the moment are Vim and GEdit. GEdit comes as part of many Linux distros. If you use Ubuntu, it is part of the operating system. GEdit has some decent features like: * Syntax Highlighting * Split Windows * Word Wrapping Advanced features are left to be handled by external plug-ins. I prefer project-less development. That means there are no formal project files and projects are preserved via a workspace bound to a directory structure. Go has excellent support for project-less development. When building and installing your projects, the Go tooling, in conjunction with the way Go packages code, can minimize the need for external scripts and makefiles. GEdit is a decent editor but I could not find any good Plug-ins that would allow me to perform a Go build right from the editor. The "External Tools" Plug-in has worked for me. I was able to set up shortcuts and get "go build" to execute. When you click on errors, displayed in the bottom pane of GEdit, the cursor jumps to exact error location. When I started programming in Go, the "External Tools" Plug-in worked for me for quite some time. But after awhile, I started to wish that "go build" would run similar to how Linters ran. With Linters, you can run a command after the file is saved. Since Go usually takes only few seconds to build, the Plug-in could execute a "go build" on save and then jump to the error location if there were any. I wrote a GEdit Plug-in that is developed in Python. Depending on the version of Python you have installed, you may require some small adjustments. This is covered in the Known Issues section below. Ops, I