2017-02-01 14:06:00 +00:00
;;; config.el --- Go Layer config File for Spacemacs
2015-04-01 02:24:01 +00:00
;;
2021-03-22 20:11:29 +00:00
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
2015-04-01 02:24:01 +00:00
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
2021-03-24 03:31:44 +00:00
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
2015-04-01 02:24:01 +00:00
;; variables
2015-04-09 03:57:22 +00:00
2016-09-05 02:29:41 +00:00
( spacemacs|define-jump-handlers go-mode godef-jump )
2021-03-18 04:11:06 +00:00
( defvar go-backend ( if ( configuration-layer/layer-used-p 'lsp ) 'lsp 'go-mode )
2019-09-30 04:49:44 +00:00
" The backend to use for IDE features.
Possible values are ` go-mode ' and ` lsp '.
If ` nil ' then ` go-mode ' is the default backend unless ` lsp ' layer is used. " )
2018-06-11 22:05:13 +00:00
2015-10-26 13:57:33 +00:00
( defvar go-use-gocheck-for-testing nil
" If using gocheck for testing when running the tests -check.f will be used instead of -run to specify the test that will be ran. Gocheck is mandatory for testing suites. " )
2016-04-05 02:36:51 +00:00
2019-08-07 14:06:12 +00:00
( defvar go-use-testify-for-testing nil
" If using testify for testing when running the tests -testify.m will be used instead of -run to specify the test that will be ran. Testify is mandatory for testing suites. " )
2018-07-26 23:05:02 +00:00
( defvar go-format-before-save nil
" Use gofmt before save. Set to non-nil to enable gofmt before saving. Default is nil. " )
2016-04-05 02:36:51 +00:00
( defvar go-tab-width 8
" Set the `tab-width' in Go mode. Default is 8. " )
2016-05-04 05:25:19 +00:00
2019-09-04 20:37:58 +00:00
( defvar go-use-golangci-lint nil
" Use `golangci-lint' if the variable has non-nil value. " )
2018-06-07 19:26:51 +00:00
2017-01-15 17:31:33 +00:00
( defvar go-test-buffer-name " *go test* "
" Name of the buffer for go test output. Default is *go test*. " )
2017-01-06 19:06:30 +00:00
( defvar go-use-test-args " "
" Additional arguments to be supplied to ` go test ` during runtime. " )
2019-04-01 21:48:10 +00:00
( defvar go-test-verbose nil
" Control verbosity of ` go test ` output " )
2019-04-04 05:20:48 +00:00
( defvar go-run-args " "
" Additional arguments to by supplied to ` go run ` during runtime. " )
2020-06-10 22:12:56 +00:00
( defvar go-run-command " go run "
" Go run command. Default is ` go run ` . " )
( defvar go-test-command " go test "
" Go test command. Default is ` go test ` . " )