# go contribution layer for Spacemacs
![go](img/go.png)
**Table of Contents**
- [go contribution layer for Spacemacs](#go-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Layer](#layer)
- [Working with Go](#working-with-go)
## Description
This layers adds extensive support for go.
Features:
- gofmt on file save
## Install
### Layer
To use this contribution add it to your `~/.spacemacs`
```elisp
(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