[GODRIVER-853] Add support for encoding/decoding TextMarshaller/TextUnmarshaller-keyed map Created: 27/Feb/19  Updated: 11/Mar/19  Resolved: 11/Mar/19

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: takumi fujiwara Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

JSON conversion package in the stdlib offers additional support for encoding/decoding map whose key type implements encoding.TextMarshaller/TextUnmarshaller(any type which can be encoded to/decoded from text).

Contrary to this, our BSON package only supports encoding/decoding string-keyed map for now.

For convenience and consistency, we should support conversion of TextMarshaller/TextUnmarshaller-keyed map?



 Comments   
Comment by Ian Whalen (Inactive) [ 11/Mar/19 ]

jiftechnify thanks for the feature request - we're closing this as Won't Fix though because we're deferring to users to provide their own codecs.

Generated at Thu Feb 08 08:35:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.