为了账号安全,请及时绑定邮箱和手机立即绑定

Return: 在 Go 中意味着什么

Return: 在 Go 中意味着什么

Go
哈士奇WWW 2023-08-21 14:46:47
我遇到了这样的函数(为了清楚起见,进行了简化):func myfunc(ir io.RuneReader, ib []byte, is string, pos, ncap int, dstCap []int) []int {var matched bool// do something to get matched, change dstCapReturn:    if !matched {        return nil    }    return dstCap}“返回:”这行是什么意思?
查看完整描述

1 回答

?
至尊宝的传说

TA贡献1789条经验 获得超10个赞

它是一个标签。goto它可以用作、break、 或语句的目标continue



查看完整回答
反对 回复 2023-08-21
  • 1 回答
  • 0 关注
  • 147 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号