Sublime Text 3 for Go
Get started quickly with this docker container of Sublime Text 3 prepared for Golang development.
Came up with this idea for shortening newcomers onboarding time during training sessions.
First pull the container.
docker pull jgautheron/sublime-text-go:latest
Then run it!
docker run -it \ -v $HOME/workspace:/home/subl/workspace \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=$DISPLAY \ jgautheron/sublime-text-go:latest
$HOME/workspaceis the workspace you'd like to work with
- You can mount your own config if you already have one:
- You can mount your own GOPATH:
What is inside?
This version contains two plugins:
- Material Theme
ST is configured to run automatically at each save:
The code will be automatically formatted with
# 'Gtk: cannot open display: :0'
Try to set
DISPLAY=your_host_ip:0 or run
xhost + on your host.
Read here for more info.