I am trying to find how to check if a structure property is set, but I cannot find any way.
I expect something like this, but from this does not work:
type MyStruct struct { property string } test := new(MyStruct) if test.property { //do something with this }
go
mcuadros
source share