Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: