Graham Slick
Graham Slick

Reputation: 6870

How to iterate over request parameters

I'd like to iterate over the request parameters in the request handler. I'm following the example from the documentation, but I can't get it to work.

By following the getting started guide and using the piece of code provided to range over parameters, I get :

actions/home.go:8:26: undefined: url

Is there a way to iterate over the request parameters using buffalo's context?

Upvotes: -5

Views: 420

Answers (1)

Damien Legros
Damien Legros

Reputation: 529

You have to import the url package link

import "net/url"

Upvotes: 3

Related Questions