Complete Computing Environment: Golang

Table of Contents

Programming in Goggle Go

(provide 'cce-golang)

I am … decidedly not a fan of Google's Go language, but I need to use it to make far more money than I deserve, so I use it.

export GOPATH=~/go/
export PATH=$PATH:$GOPATH/bin
- name: golang and tools installed
    state: installed
    name: "{{item}}"
  - golang-bin
  - golang-docs

- name: gocode etc installed
    cmd: "go get {{item}}"
    creates: /home/rrix/go/bin/goflymake
  become: yes
  become_user: rrix
(install-pkgs '(go-mode))

(setq gofmt-command "goimports")
(add-hook 'go-mode-hook (lambda ()
                           (add-hook 'before-save-hook 'gofmt-before-save nil t)))
(add-hook 'go-mode-hook (lambda ()
                          (set (make-local-variable 'company-backends) '(company-go))

Author: Ryan Rix

Created: 2018-02-20 Tue 12:53

Validate XHTML 1.0