خرید بک لینک

Vote count: 0

I have the following code:

type house struct{
    s := make([]string, 3)
    name string
    roomSzSlice := make([]roomSz, 3)
} 

func main() {


}

And when i try to build and run it i get the following errors:

c:gosrctestmain.go:10: syntax error: unexpected :=
c:gosrctestmain.go:11: non-declaration statement outside function body
c:gosrctestmain.go:12: non-declaration statement outside function body
c:gosrctestmain.go:13: syntax error: unexpected }

What did i do wrong?

Thanks!

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 15 فروردين 1395 ساعت: 5:49

صفحه بندی