code: func CurrentStage(s []Stage) (*Stage, error) {
  	if len(s) == 0 {
  		return nil, errors.New("No build stage in current context")
  	}
  	return &s[len(s)-1], nil
  }
docs: // CurrentStage return the last stage in a slice