Login
Discover
Waves
Communities
Write
Login
Signup
Topics
#
virable
Explore topics
#virable
Global
Trending
Hot
New
Payout
Muted
Promoted
#virable
New
#virable
Follow to get notified about new posts with this tag
Get #virable by email
Follow
sslinux
cn
8y
Golang新手可能会踩的50个坑-04简短声明的变量只能在函数内部使用
// 错误示例 myvar := 1 // syntax error: non-declaration statement outside function body func main() { } // 正确示例 var myvar = 1 func main() { one := 1 println(one) }
$ 0.000
1
1
Discover communities
Explore communities
Create your community