1.2 KiB
1.2 KiB
go contribution layer for Spacemacs
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