Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_0w8t
on June 2, 2018
|
parent
|
context
|
favorite
| on:
One year of C
That code can be simplified a lot if the db object stores the error itself so it can be checked only once after few calls, like what bufio.Scanner does.
kuschku
on June 2, 2018
[–]
That database object is from
https://golang.org/pkg/database/sql/
which is part of the standard library of go.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: