You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now RowID[0]and RowName[0] build a pair. But since gorilla/schema drops empty strings for some reason rather than settings it to Go's default for that value or using the default value defined by tags, the relationship breaks.
Expected Behavior
fmt.Println(i.ID, "Length", len(i.ID)) // ID [1 15] Length 3, add "" to struct slice
fmt.Println(i.ID, "Length", len(i.ID)) // ID [&addr nil &addr] Length 3, add nil to struct slice when field is pointer
The text was updated successfully, but these errors were encountered:
Current Behavior
When called with
id=1, id=, id=15
The behavior is rather unfortunate when decoding values that matter when equal to
""
.For example, when two slices are related to each other.
Now
RowID[0]
andRowName[0]
build a pair. But since gorilla/schema drops empty strings for some reason rather than settings it to Go's default for that value or using the default value defined by tags, the relationship breaks.Expected Behavior
The text was updated successfully, but these errors were encountered: