I works! Thanks @maxim So if I understand it correctly, it failed due to the receiver ptr being nil rather than being a pointer to the zero value of the struct instead.
It would have helped if the docs / examples have this slightly more complicated example; and also maybe better directed error message for beginner users.
Will be happy to submit a PR as example; where do you suggest to put it? In docs, examples?