我遇到了这样的函数(为了清楚起见,进行了简化):
func myfunc(ir io.RuneReader, ib []byte, is string, pos, ncap int, dstCap []int) []int {
var matched bool
// do something to get matched, change dstCap
Return:
if !matched {
return nil
}
return dstCap
}
“返回:”这行是什么意思?
至尊宝的传说
相关分类