原因為屬性第一個字必須大寫,struct名字第一個字也要大寫。 ... point := struct{ x, y int }{10, 20} ... Import struct from another package and file golang.
確定! 回上一頁