mirror of https://github.com/ray-x/go.nvim
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
350 B
Markdown
24 lines
350 B
Markdown
2 years ago
|
A sample go project with minium config for go.nvim
|
||
|
|
||
|
Start with (may need to restart nvim after the first time)
|
||
|
|
||
|
```shell
|
||
|
cd sampleApp
|
||
|
nvim -u ../init.lua main.go
|
||
|
|
||
|
```
|
||
|
|
||
|
To start debugging, run the following commands
|
||
|
```vim
|
||
|
:10
|
||
|
:GoBreakToggle
|
||
|
:GoDebug
|
||
|
```
|
||
|
|
||
|
To unit test, run the following commands
|
||
|
```vim
|
||
|
:pkg/findAllSubStr_test.go
|
||
|
:10
|
||
|
:GoTestFunc
|
||
|
```
|