Skip to content

Conversation

@andreynering
Copy link
Contributor

For scenarios like this:

// POST /?[]foo_ids=1&[]foo_ids=3&[]foo_ids=5

c.PostFormArray("[]foo_ids") // []string{"1", "3", "5"}

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 94.179% when pulling f3ff8f8 on andreynering:array into 4a6bc4a on gin-gonic:develop.

@appleboy
Copy link
Member

Nice improvement. 👍

@tboerger
Copy link
Contributor

Normally it's form_name[] for Form values in array format

@andreynering
Copy link
Contributor Author

Normally it's form_name[] for Form values in array format

It will work either way: form_name[] or []form_name. It actually will work for any name.

Copy link
Contributor

@tboerger tboerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think @appleboy?

Copy link
Member

@appleboy appleboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants