我正在嘗試按照以下方式做一些事情:package main import ( "fmt" ) type StringWrap stringfunc main() { s := []string{"a","b","c"} sw := []StringWrap(s) //ERROR: cannot convert s (type []string) to type []StringWrap fmt.Println(sw)}難道我做錯了什么?或者這只是 go 的一個限制?
- 1 回答
- 0 關(guān)注
- 254 瀏覽
添加回答
舉報
0/150
提交
取消