1. 首页
  2. 会员
  3. beary的信息
初级会员
  • 第 18493 位会员
  • beary
  • beary
  • 2018年05月09日 15:58:10
  • Offline
  • 20 11

最近发布的文章

    暂无

最近分享的资源

    暂无

最近发布的项目

    暂无

最近的评论

  • goland
  • 评论了主题 if中用分号是否奇怪?
    #4 @taatcc 被墙了,包括 [golang.org](https://golang.org) 也被墙了,你可以用梯子看。 不过你可以看顶部菜单的"官方文档-->Go 指南",effective go 在 "官方文档-->中文文档-->文档-->实效 Go 编程"中。
  • 评论了主题 if中用分号是否奇怪?
    先把 [tour of go](https://tour.golang.org/list) 看完吧,你这个问题在 [这里](https://tour.golang.org/flowcontrol/6) 说得很明白
  • 在官方的[effective go](https://golang.org/doc/effective_go.html#composite_literals)中有一句话 > Note that, unlike in C, it's perfectly OK to return the address of a local variable; the storage associated with the variable survives after the function returns. 所以在 go 中,返回指向局部变量的指针是没问题的。