我試圖找到如何檢查是否設置了結構屬性,但我找不到任何方法。我期待這樣的事情,但 corse 這行不通:type MyStruct struct { property string}test := new(MyStruct)if test.property { //do something with this}
- 3 回答
- 0 關注
- 191 瀏覽
添加回答
舉報
0/150
提交
取消