有一個類type MyPoint struct { X, Y float64}以下2種聲明方式有什么區別:var Path []MyPointtype Path2 []MyPoint
golang type和var區別是什么?
三國紛爭
2018-07-13 09:13:15