How to set a pointer to nil using Go reflection:
v.Set(reflect.Zero(v.Type())
If you want to change selection, open document below and click on "Move attachment"
reflect: set to nil? Sie benötigen die Berechtigung zum Ansehen der E-Mail-Adressen der Mitglieder, um die Originalnachricht anzusehen an stephanos, golang-nuts 2013/10/13 stephanos <stephan...@gmail.com>: <span>v.Set(reflect.Zero(v.Type()) Rémy. stephanos ungelesen, 13.10.2013, 11:22:1013.10.13 an golan...@googlegroups.com, stephanos Hm, when I apply that line the result is not nil: http://play.golang.org/p/WtC34_rh Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details