Commit graph

76 commits

Author SHA1 Message Date
Mathieu
272c96d855 Add Testify support for layers/+lang/go 2019-08-21 21:25:49 +02:00
Robert Zaremba
d642095380 layer/+lang/go: refactore go-linter setup 2019-07-11 19:22:18 +02:00
emacspace
c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
Anton-Latukha
f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
Anton-Latukha
ba074bc908 layers: lang: new structure: general: add pure, multi-paradigm (&js) 2019-05-15 21:04:48 +03:00
JAremko
77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
Seong Yong-ju
610ecbbf70 Add godoc installation into go layer README 2019-04-17 15:37:52 +02:00
Enze Chi
21c442050a Add go-run-args to pass command line arguments to go run
When executing the main function which requires command line arguments, user can
set `go-run-args` to pass command line arguments to compiled binary.

The example below demonstrates how to pass command line arguments by setting
`go-run-args` as file local variable:

package main

import (
	"fmt"
	"os"
	"strconv"
)

func main() {
	//Atoi converts a string to an int
	fmt.Println("Arguments:", os.Args)
	a, _ := strconv.Atoi(os.Args[1])
	b, _ := strconv.Atoi(os.Args[2])

	result := sum(a, b)
	fmt.Printf("The sum of %d and %d is %d\n", a, b, result)
}

func sum(a, b int) int {
	return a + b
}

// Local Variables:
// go-run-args: "10 5"
// End:
2019-04-05 22:59:17 +02:00
Justin
f8bb6997a9 Remove lsp-javascript-typescript package for lsp built in.
Remove lsp-go package for lsp built in.
Changed go/react/typescript lsp-*-enable hooks to lsp
Update go/typescript/rust layer docs for lsp-mode installation command.
Remove unused rust layer variable
2019-01-15 00:41:30 +02:00
emacspace
0631e44895 documentation formatting: Sun Jan 13 19:53:55 UTC 2019 2019-01-13 21:57:17 +02:00
syl20bnr
7cc06ce63e Update change logs
Thank you everybody for participating in #11741 in order to make this
possible!
2019-01-13 16:32:47 +02:00
emacspace
45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
Josh Greenwood
b8d5555340
fixes typo. s/with/wish 2018-10-16 09:20:16 +03:00
JAremko
cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
Andriy Senyshyn
24d5607b7b Update gocode repo
nsf/gocode is not maintained anymore. change to https://github.com/mdempsky/gocode
2018-08-28 21:59:29 +01:00
Lupco Kotev
25be8ecb62 Update documentation to include golangci-lint 2018-08-20 23:03:45 +01:00
Ljupcho Kotev
81865e1ea2 Change backend name from default to go-mode 2018-08-16 00:39:17 +03:00
Lupco Kotev
bb3e3b2103 Add lsp support for go 2018-08-16 00:39:17 +03:00
lawr
591fe78eec go-layer: supoort set-tab-width equal nil to work with editorconfig 2018-08-10 00:36:46 +03:00
Robby O'Connor
c3e402332f go layer: fix cosmetic issue 2018-08-02 00:20:24 +01:00
Jon Erik D Suero
ff555d80b4 Add key binding to run gofmt manually 2018-08-01 17:54:27 -04:00
Jon Erik D Suero
166f6768ae go: add toggle for gofmt before save and turn it off by default 2018-08-01 17:52:03 -04:00
JAremko
6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
syl20bnr
aedceddd92 go: cleanup layer sorting stuff and using idiomatic constructs 2018-06-09 01:09:11 -04:00
Cosmin Cojocar
d47f9267e9 go: add support for go-impl in refactoring menu 2018-06-09 01:04:23 -04:00
syl20bnr
f12b849993 go: sort packages.el and update README 2018-06-09 00:58:50 -04:00
Cosmin Cojocar
80dbae3825 go: add option in refactoring to fill a structure with default values 2018-06-09 00:51:33 -04:00
syl20bnr
ae53d9612e go: update feature section with gopkgs 2018-06-09 00:49:07 -04:00
Cosmin Cojocar
938155c50a Configure the go-packages-functions to use the gopkgs tool
This is a much faster option than the current native function.
2018-06-09 00:39:08 -04:00
syl20bnr
0fd13aef2b go: change test generation key bindings according to conventions 2018-06-09 00:36:32 -04:00
Cosmin Cojocar
359960ae27 Add support to generate go tests with go-gen-test 2018-06-09 00:36:32 -04:00
smile13241324
0961850391 Fix doc for octave, sql and go layers 2018-02-17 17:30:27 +02:00
syl20bnr
0bae94fe4d go: sort key bindings in README.org 2017-12-17 22:12:44 -05:00
brantou
d9065de1cb Add go-tag to go-layer 2017-12-17 22:10:24 -05:00
JAremko
06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
zer09
c504496b12 Update README.org 2017-05-28 15:03:33 +02:00
Eivind Fonn
adca985dd9 Update go layer documentation 2017-05-25 13:19:50 +02:00
Ian Clark
249c3b87b0 Configurable extra arguments to go test
ADD:
  - layers/+lang/go/config.el Added new variable `go-use-test-args` to allow
    specifying additional arguments being passed to `go test.

CHANGE:
  - layers/+lang/go/packages.el Updated `go-run-tests` to automatically concat
    the new variable `go-use-test-args` to args passed to `go test`.
2017-05-24 11:52:10 +02:00
JAremko
6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
JAremko
f805d0ebd9 Fix spacefmt test on deleted files
Also fix some links
[ci skip]
2017-04-28 23:29:43 -04:00
firemiles
b8c17cf3c5 docs: Install goimports from new repository. 2017-04-28 22:50:12 -04:00
dineshbhosale
0c91ad7acb Go : Update documentation for fixing autocomplete issues
Workaround for https://github.com/syl20bnr/spacemacs/issues/7784
2017-04-20 23:03:34 -04:00
Denis Bernard
9468599ea4 Improve go test output buffer behavior.
- Use compilation-start to get highlighting of compilation or runtime errors.
- Configure output window in popwin and window-purpose (so that it can be closed
  with C-g for example).
- Configurable buffer name.
2017-04-17 23:07:49 -04:00
tinysong
550eddd368 update go layer README.md 2017-04-11 23:57:57 -04:00
syl20bnr
78f098ae46 Revert go-coverage to SPC m g c and move create-tages to SPC m g C
SPC m g C is only used in Clojure whereas SPC m g c is used in various layers.
This is simpler to just move create tags to SPC m g C and move the clojure
bindings to SPC m g c (since it is not used in the clojure layer).
2017-03-30 22:07:16 -04:00
JAremko
0fc5a729ff Rebind go-coverage to gC 2017-03-30 22:07:16 -04:00
Jim Deville
194113a6eb update docs with go-guru info 2016-10-17 13:36:40 +02:00
Eric Drechsel
f609a25585 go: replace deprecated oracle with guru
change to prefix for guru commands from `mr` to `mf`
to separate from rename commands. Better prefix?

Fixes #6772.
2016-10-17 13:36:31 +02:00
syl20bnr
a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
JAremko
4f37acdfae add go coverage key bindings
fix copypasta
2016-05-11 20:50:16 -04:00