georgysavva / scany

Library for scanning data from a database into Go structs and more
MIT License
1.27k stars 67 forks source link

Allow ambiguous struct fields #5

Closed georgysavva closed 4 years ago

georgysavva commented 4 years ago

Now dbscan doesn't return an error if multiple struct fields map to the same column. It scans data into the first field that it encounters during the traversal i.o in the outermost and topmost field.