Golang errcheck: Difference between revisions

From wikinotes
(Created page with "Checks for ignored errors within your application. = Documentation = <blockquote> {| class="wikitable" |- | github || https://github.com/kisielk/errcheck |- |} </blockquote><!-- Documentation --> = Install = <blockquote> <syntaxhighlight lang="bash"> go install github.com/kisielk/errcheck@latest </syntaxhighlight> </blockquote><!-- Install -->")
 
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Install -->
</blockquote><!-- Install -->
= Tips/Tricks =
<blockquote>
== Vim Quickfix ==
<blockquote>
<syntaxhighlight lang="vim">
:call setqflist([], ' ', {'lines': systemlist('errcheck .')}) | copen  | wincmd w | wincmd J  " show errors in quickfix
</syntaxhighlight>
</blockquote><!-- Vim Quickfix -->
</blockquote><!-- Tips/Tricks -->

Latest revision as of 19:42, 26 June 2022

Checks for ignored errors within your application.

Documentation

github https://github.com/kisielk/errcheck

Install

go install github.com/kisielk/errcheck@latest

Tips/Tricks

Vim Quickfix

:call setqflist([], ' ', {'lines': systemlist('errcheck .')}) | copen  | wincmd w | wincmd J  " show errors in quickfix