Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fgimenez/emacs-n-go
GoLang development container
https://github.com/fgimenez/emacs-n-go
Last synced: about 1 month ago
JSON representation
GoLang development container
- Host: GitHub
- URL: https://github.com/fgimenez/emacs-n-go
- Owner: fgimenez
- Created: 2014-11-08T10:17:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T17:35:14.000Z (over 6 years ago)
- Last Synced: 2024-08-03T01:39:30.164Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This container is meant to run an emacs version configured for GoLang development.
It downloads the binaries (1.5) and sets up all the required directory structure and environment variables as described in [1] in ubuntu14.04.
This is based on the go dev container at [2] and the configuration of emacs for go development at [3], thank you guys!
It includes godep, gocode, goimports, golint, godef and goconvey. If your go source files reside at `/path/to/go/src` then you can spin up the container with:
docker run -v /path/to/go/src:/workspace/src/github.com/myuser/myproject -i -t fgimenez/emacs-n-go /usr/bin/emacs
You can also use the `emacs-n-go.sh` script, which spins a goconvey server in `http://127.0.0.1:8080` and executes automatically tests in your working directory (it may require sudo credentials for the docker command):
./emacs-n-go.sh /path/to/go/src github.com/myuser/myproject
If executed without arguments takes the current directory as source and github.com/$USER/ as package
./emacs-n-go.sh
Happy coding!
[1] http://golang.org/doc/code.html
[2] https://registry.hub.docker.com/u/tmrudick/go/
[3] http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch/