[GODRIVER-842] bson can't marshal an interface Created: 21/Feb/19 Updated: 11/Sep/19 Resolved: 04/Mar/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | ollevche | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I have an interface, let's say: type STest struct { func (s *STest) Hello() { PS: i'm using v1.0.0-rc1+prerelease version |
| Comments |
| Comment by Emmanuel Eppinger (Inactive) [ 09/Jul/19 ] |
| Comment by ollevche [ 20/May/19 ] |
|
How can i do this? Can't find any doc |
| Comment by Ian Whalen (Inactive) [ 04/Mar/19 ] |
|
Hey ollevche, you'll have to register a custom codec if you'd like to do this. |