當我想在另一個結(jié)構(gòu)中嵌入一個結(jié)構(gòu)時,我應該使用指針還是值?例如type Job struct { Command string *log.Logger}或者type Job struct { Command string log.Logger}
- 1 回答
- 0 關注
- 154 瀏覽
添加回答
舉報
0/150
提交
取消