code: func OnWalkError(err *error, slice *[]error, breakWalk bool, handler func(error)) (ret bool) {
  	if e := *err; e != nil {
  		*slice = append(*slice, e)
  		ret = breakWalk
  		if handler != nil {
  			handler(e)
  		}
  	}
  	*err = nil
  	return
  }
docs: //	A helper function for the Walk() functionality of generated wrapper packages.