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

The asterisk goes before the type for pointers:

    var i *int
Unlike C, values are always initialized in Go.

http://play.golang.org/p/8tAzKyES2I



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

Search: