monoculum/formam

panic 'array index is out of bound'

Closed this issue · 0 comments

	s := struct {
		Array [2]string
	}{}

	vals := url.Values{
		"Array[2]": []string{"10"},
	}

	dec := formam.NewDecoder(nil)
	err := dec.Decode(vals, &s)

panics with array index is out of bound