Re: [go-nuts] nil pointer ref can't figure out why

2021-01-18 Thread 'Axel Wagner' via golang-nuts
You might want to use `Printf("the dao: %+v", dao)`, for example - it will also print type-names and should make it more obvious what you have. On Mon, Jan 18, 2021 at 9:16 PM Axel Wagner wrote: > On Mon, Jan 18, 2021 at 9:12 PM 'Alexander Mills' via golang-nuts < > golang-nuts@googlegroups.com>

Re: [go-nuts] nil pointer ref can't figure out why

2021-01-18 Thread 'Axel Wagner' via golang-nuts
On Mon, Jan 18, 2021 at 9:12 PM 'Alexander Mills' via golang-nuts < golang-nuts@googlegroups.com> wrote: > does anyone know why calling the method would result in a nil pointer? To > me it seems like the object for which the method is being called is nil > No, it is a pointer to a struct with two