我遇到了这样的功能(为清楚起见进行了简化):
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
}
'Return:' 行是什么意思?
SMILET
相关分类