3 ms·
You can always call a function and not assign the return calls to anything. If you have func foo() (string, error) You can still call it thusly: foo() Howe
by NateDad 12y ago
You can always call a function and not assign the return calls to anything.
If you have
func foo() (string, error)
You can still call it thusly:
foo()
However there are tools to check for unchecked errors like this one: https://github.com/kisielk/errcheck https://github.com/kisielk/errcheck