Hacker News new | past | comments | ask | show | jobs | submit login

don't forget the defer keyword:

from README:

// ... use session session.Close()

can be changed to this right after you get a session:

defer session.Close()




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

Search: