Go-missing return at end of function

时间:2018-05-15 13:14:05   收藏:0   阅读:1915

where?

  Go程序中函数在执行的时候

why?

  函数有返回参数,但是函数没有return关键字,报错

way?

  添加return返回函数需要返回的参数

原文:https://www.cnblogs.com/2bjiujiu/p/9040437.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!