bsed / gorilla

Automatically exported from code.google.com/p/gorilla
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[schema] Support field types []Struct and map[string]Struct #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently maps and slices can be of the basic types only.

gorilla.schema must support field types []Struct and map[string]Struct.

See: 
http://groups.google.com/group/gorilla-web/browse_thread/thread/159d18ef14b22489

Original issue reported on code.google.com by rodrigo.moraes on 19 Oct 2011 at 7:07

GoogleCodeExporter commented 9 years ago
After spending a little time reviewing Go's reflection API, I make an attempt 
to implement this with as non-invasive as possible. Attached is a patch, which 
appears to be working for me and passes the existing test case. Not, this is 
the functionality patch, the test will need to be uncommented and I did not 
update any documentation or code comments.

Original comment by ajzene...@gmail.com on 24 Oct 2011 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 560b8501f840.

Original comment by rodrigo.moraes on 25 Oct 2011 at 12:11