func (p *Parameters) values() (url.Values, error) {
	if p.Content == nil {
		return url.Values{}, nil
	}
	// Check if type is already ok.
	urlvs, ok := p.Content.(url.Values)
	if ok {
		return urlvs, nil
	}
	// Check for simple key/values.
	kvs, ok := p.Content.(KeyValues)
	if !ok {
		return nil, errors.New(ErrInvalidContent, errorMessages)
	}
	values := url.Values{}
	for key, value := range kvs {
		values.Set(key, value)
	}
	return values, nil
}
// values returns the content as URL encoded values.
values returns the content as URL encoded values.
// values returns the content as URL encoded values .
func (p *Parameters) values() (url.Values, error) {
	if p.Content == nil {
		return url.Values{}, nil
	}
	urlvs, ok := p.Content.(url.Values)
	if ok {
		return urlvs, nil
	}
	kvs, ok := p.Content.(KeyValues)
	if !ok {
		return nil, errors.New(ErrInvalidContent, errorMessages)
	}
	values := url.Values{}
	for key, value := range kvs {
		values.Set(key, value)
	}
	return values, nil
}
func ( p * Parameters ) values ( ) ( url . Values , error ) { if p . Content == nil { return url . Values { } , nil } urlvs , ok := p . Content . ( url . Values ) if ok { return urlvs , nil } kvs , ok := p . Content . ( KeyValues ) if ! ok { return nil , errors . New ( ErrInvalidContent , errorMessages ) } values := url . Values { } for key , value := range kvs { values . Set ( key , value ) } return values , nil }
values returns the content as URL encoded values.
values returns the content as URL encoded values .
// Check if type is already ok. // Check for simple key/values.