gorilla / schema

Package gorilla/schema fills a struct with form values.
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
1.39k stars 231 forks source link

enable to decode with case sensitive tags #189

Closed ya5u closed 2 years ago

ya5u commented 2 years ago

Fixes #188

Summary of Changes

  1. Add fieldInfo to hasTag field.
  2. In case hasTag is true, compare field.alias and alias case sensitively in structInfo.get method.
  3. Add testing for this change.
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days.