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

Any non-private usage of a private struct is a compile error.

If you're using goland, it would report this as an error as it is effectively compiling your code as you write it.

Also, autocomplete wouldn't work when you tried to use the private struct.



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

Search: