bsed / gorilla

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

Support for simple pointers (*string, *int, *float, *bool, etc) #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Additional support for simple pointers, necessary to support loading data into 
types generated by goprotobuf.

Example:

type Person struct {
Name *string
Age *int
}

Patch supplied supports pointers for all basic types and slices of basic types. 
I believe pointers to structs are already supported. Test case added and all 
tests pass.

Original issue reported on code.google.com by ajzene...@gmail.com on 13 Feb 2012 at 5:12

Attachments:

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

Original comment by rodrigo.moraes on 14 Feb 2012 at 1:36

GoogleCodeExporter commented 9 years ago
Ended up reorganizing to also support pointers to slices and pointers to slices 
of pointers. You gave me a good start. :)

Tests now covers all edge cases.

Original comment by rodrigo.moraes on 14 Feb 2012 at 1:38