Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jasonhansel
on Nov 19, 2023
|
parent
|
context
|
favorite
| on:
NilAway: Practical nil panic detection for Go
One answer would be to provide something like a GetPointer() method which, if the inner pointer is nil, creates a new struct of type T and returns a pointer to it.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: