LiteIDE X



Check out my new installtion document:
https://ardanlabs.com/blog/2016/05/installing-go-and-your-workspace.html

I removed the sections about gocode and GDB. These are not necessary any longer. I also added links for more editors.

Windows
This is a great post by Wade Wegner for installing Go on your Windows Machine:
http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/

Mac OS X
The following instructions will guide you through installing Go on your Mac.

LiteIDE XOpen your favorite browser and go to the following website:
http://golang.org/dl/

Vim, Visual Studio Code, and Jetbrains GoLand are probably your best bets out of the 11 options considered. 'Lightweight and fast' is the primary reason people pick Vim over the competition. This page is powered by a knowledgeable community that helps you make an informed decision.

  • LiteIDE is a simple, open source, cross-platform Go IDE. XeiTongXueFlyMe/liteide.
  • I installed LiteIDE and GDB. I opened my Go project in LiteIDE and added a breakpoint to some point in the code. Then i switched back to terminal and ran the project binary that was supposed to envoke the breakpoint and nothing happened.


This will show you all the latest builds for the different operating systems. Darwin is the name for the Mac OS. Download the installer package for your OS version and architecture.
Once downloaded go to your Downloads folder in Finder and double click on the pkg file to start the installation. The installation will put Go in /usr/local/go. Once the installation is complete you will want to check the installation.
Note: Moving forward we will be using both Terminal and Finder. It helps to be able to see all the files in Finder. Finder by default will not show you everything that is on your hard drive.

To show all files in Finder:
Open a Terminal session. If you don’t know where the Terminal program is go to your Applications folder in Finder and then Utilities. Click on Terminal and a bash shell command window will open.
Execute the following commands in Terminal.

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

The killall Finder will reload the Finder program and now you can see all the files.


Step 2: Check Installation

Open a Terminal session and type the following command
You should see the following if everything installed correctly
go version go1.5 darwin/amd64

Now type the which command to verify the installation is in /usr/local/go
You should see that Go can be found in /usr/local/go/bin
/usr/local/go/bin/go


Step 3: Set Your GOPATH

You need a single place to store and work on your Go projects. Create a folder called projects from inside your home folder:

mkdir projects
cd projects
mkdir src
mkdir bin

LiteIDENow set projects as your GOPATH. Open the .bash_profile file from the $HOME folder and add the following items to the end.
export GOPATH=“$HOME/projects”
export PATH=$PATH:$GOPATH/bin

Liteide Go Src.xml


Then exit the Terminal App and open a new Terminal App. Check that the Go environment now has your new GOPATH.
go env

You should see all the Go related environment variables including GOPATH. Here are some of them:
GOARCH=“amd64”
GOHOSTARCH=“amd64”
GOHOSTOS=“darwin”
GOOS=“darwin”
GOPATH=“/Users/you/projects”
GOROOT=“/usr/local/go”
GOTOOLDIR=“/usr/local/go/pkg/tool/darwin_amd64”


Step 4: Get, Build and Install Basic Packages

These are Go packages you may want:
// gocode is used by many editors to provide intellisense
go get github.com/nsf/gocode
// goimports is something you should run when saving code to fill in import paths
go get golang.org/x/tools/cmd/goimports
// gorename is used by many editors to provide identifier rename support
go get golang.org/x/tools/cmd/gorename
// oracle is a tool that help with code navigation and search
go get golang.org/x/tools/cmd/oracle
// golint should be run after every build to check your code
go get github.com/golang/lint/golint


Step 5: Debugger

Using GDB is really not an option. If you would like to experiment with Delve, here is a link:
https://github.com/derekparker/delve


Step 6: Install Editor


Sublime

http://www.sublimetext.com/
DisposaBoy wrote this plugin for Sublime
https://github.com/DisposaBoy/GoSublime
Mark Wolfe wrote this post:
http://www.wolfe.id.au/2015/03/05/using-sublime-text-for-go-development/

VIM
http://www.vim.org/download.php
Victor Farazdagi wrote this post on installing Vim for Go:
http://farazdagi.com/blog/2015/vim-as-golang-ide/

Atom
https://atom.io/
Joe Fitzgerald wrote this plugin for Atom
https://github.com/joefitzgerald/go-plus

LiteIDE

http://sourceforge.net/projects/liteide/files/
Emacs
This is the configuration Guillaume Charmes uses:
https://github.com/creack/dotfiles


Helpful Links

Here are other links to web pages that will be very helpful:
http://golang.org/
https://github.com/golang/go/wiki
http://blog.golang.org/
Liteidexhttp://www.youtube.com/user/gocoding
http://dave.cheney.net/
http://gophervids.appspot.com/
You must watch these videos on Go Concurrency Patterns
http://www.youtube.com/watch?v=QDDwwePbDtw
http://www.youtube.com/watch?v=f6kdp27TYZs

Liteide Windows Xp


I managed to build LiteIDE X37.1 from the GitHub sources by following the projects clear, simple directions. They were:

They are part of the website’s installation directions. The website is here: http://liteide.org/

The directions were written for Ubuntu 16.04, but they work just as well for Ubuntu 18.04. It should be noted that Qt5 doesn’t need to be installed. Just start with the git clone of the source and go from there. I’m running it out of where it was built. I haven’t run the installation and for my uses I don’t intend to.

For the record I have the latest version of Go, 1.14.3 for linux-arm64 (ARMv8).

Liteidex Github

This isn’t the first time I’ve built this tool. I built an earlier version under Raspbian Buster on the Raspberry Pi 4. It built and worked fine there, too.

As for usefulness, it is quite useful, at least for my purposes. In the example above it found all my files under the default GOPATH (go env GOPATH) and I was able to quickly navigate to my work and open one of my files I developed on the Raspberry Pi. It’s my hope to build and attempt to run the software and Adafruit hardware I used on the Raspberry Pi.

Liteidex

Right now I’m in the process of fulfilling a promise I made to my wife to clean out a good portion of our house and begin to do some home improvements. I’ve accrued a lot of “homeowner dept” that I need to pay down quite a bit. I’m retired and back to living in the regular world. These little reports will be short and sweet, and perhaps infrequent. But I won’t mind. I do all of this because I enjoy it, when I feel like it. Not because I have to. And that’s alright.