docs: Capitalization
This commit is contained in:
parent
600cbcc97e
commit
f157e53753
3 changed files with 48 additions and 38 deletions
|
|
@ -2,14 +2,14 @@
|
|||
---@tag gopher.nvim-gotests
|
||||
---@text gotests is utilizing the `gotests` tool to generate unit tests boilerplate.
|
||||
---@usage
|
||||
--- - generate unit test for specific function/method:
|
||||
--- - Generate unit test for specific function/method:
|
||||
--- 1. Place your cursor on the desired function/method.
|
||||
--- 2. Run `:GoTestAdd`
|
||||
---
|
||||
--- - generate unit tests for *all* functions/methods in current file:
|
||||
--- - Generate unit tests for *all* functions/methods in current file:
|
||||
--- - run `:GoTestsAll`
|
||||
---
|
||||
--- - generate unit tests *only* for *exported(public)* functions/methods:
|
||||
--- - Generate unit tests *only* for *exported(public)* functions/methods:
|
||||
--- - run `:GoTestsExp`
|
||||
---
|
||||
--- You can also specify the template to use for generating the tests. See |gopher.nvim-config|
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---@toc_entry Iferr
|
||||
---@tag gopher.nvim-iferr
|
||||
---@text if you're using `iferr` tool, this module provides a way to automatically insert `if err != nil` check.
|
||||
---@usage execute `:GoIfErr` near any `err` variable to insert the check
|
||||
---@text If you're using `iferr` tool, this module provides a way to automatically insert `if err != nil` check.
|
||||
---@usage Execute `:GoIfErr` near any `err` variable to insert the check
|
||||
|
||||
local c = require "gopher.config"
|
||||
local log = require "gopher._utils.log"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue