type MyType interface {
MyStringSlice []string}這有什么問題?它可以作為結構很好地工作,如下所示:type MyType struct {
MyStringSlice []string}但設置為接口時編譯時出現以下錯誤:syntax error: unexpected [, expecting (
- 1 回答
- 0 關注
- 184 瀏覽
添加回答
舉報
0/150
提交
取消