// return the value of the *last* param with the specified key
return the value of the *last* param with the specified key
// return the value of the * last * param with the specified key
func findLastParam(key string, params []vc.Param) (string, error) {
	if key == "" {
		return "", errors.New("ERROR: need non-nil key")
	}
	l := len(params)
	if l == 0 {
		return "", errors.New("ERROR: no params")
	}
	for i := l - 1; i >= 0; i-- {
		p := params[i]
		if key == p.Key {
			return p.Value, nil
		}
	}
	return "", fmt.Errorf("no param called %q found", name)
}
func findLastParam ( key string , params [ ] vc . Param ) ( string , error ) { if key == " " { return " " , errors . New ( " " ) } l := len ( params ) if l == 0 { return " " , errors . New ( " " ) } for i := l - 1 ; i >= 0 ; i -- { p := params [ i ] if key == p . Key { return p . Value , nil } } return " " , fmt . Errorf ( " " , name ) }
return the value of the *last* param with the specified key
return the value of the * last * param with the specified key