spacemacs/contrib/lang/go/README.md
2015-01-09 23:05:35 -05:00

1.2 KiB

go contribution layer for Spacemacs

go

Table of Contents

Description

This layers adds extensive support for go.

Features:

  • gofmt on file save

Install

Layer

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(go)
  "List of contribution to load."
)

Working with Go

Go commands (start with m):

Key Binding            |                 Description

---------------------------|------------------------------------------------------------ SPC m d p | godoc at point SPC m i g | goto imports SPC m i a | add import SPC m i r | remove unused import SPC m p b | go-play buffer SPC m p r | go-play region SPC m p d | download go-play snippet