Add missing raw&has for post&get

This commit is contained in:
Denis Arh
2020-04-08 17:02:07 +02:00
parent 5facc91fe8
commit 23bf0c52c7
32 changed files with 567 additions and 1 deletions
@@ -113,6 +113,8 @@ func (r *{name|expose}{call.name|capitalize}) Fill(req *http.Request) (err error
}
{elseif substr($param.type, 0, 2) !== '[]' && substr($param.type, -3) !== 'Set'}
if val, ok := {method|strtolower}["{param.name}"]; ok {
r.has{param.name|expose} = true
r.raw{param.name|expose} = val
{if substr($parsers[$param.type], -7) === 'WithErr'}
if r.{param.name|expose}, err = {$parsers[$param.type]}(val); err != nil {
return err