[GODRIVER-2722] Remove unnecessary interfaces from the merged "bson" package Created: 23/Dec/22  Updated: 08/Jan/24

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

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Go Driver 2.0 BSON
Quarter: FY24Q3
Backwards Compatibility: Major Change

 Description   

After merging the bson packages into one package, there are a bunch of exported interfaces. Some of them seem like they no longer need to be exported and some of them seem like duplicates.

The full list of interfaces is:

type ArrayReader
type ArrayWriter
type BytesReader
type BytesWriter
type Codec
type CodecZeroer
type DocumentReader
type DocumentWriter
type KeyMarshaler
type KeyUnmarshaler
type Marshaler
type Proxy
type Unmarshaler
type ValueDecoder
type ValueEncoder
type ValueMarshaler
type ValueReader
type ValueUnmarshaler
type ValueWriter
type ValueWriterFlusher
type Zeroer

Audit that list of interfaces and remove or un-export any that don't need to be part of the public API.

Definition of done:

  • Audit the list of exported interfaces in the merged bson package and remove or un-export any that don't need to be part of the public API.

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