This PR adds Builders for v1/2 ManifestEntry and for DataFile as well as helper funcs to write ManifestLists and Manifest files.
Bonus: fixes a max recursion depth panic in dataFile.EqualityFieldIDs()
One thing I'm not super happy with is manifestEntryV1/2.Data's type has been changed from dataFile to DataFile (the interface type). This was the best way I could come up with to make the builders for both work, but I also feel like it diverges from the pattern a little bit. This may not be a huge deal, but something to consider. You can see how the effects rippled out a little bit in the tests.
172
This PR adds Builders for v1/2 ManifestEntry and for DataFile as well as helper funcs to write ManifestLists and Manifest files.
Bonus: fixes a max recursion depth panic in
dataFile.EqualityFieldIDs()
One thing I'm not super happy with is
manifestEntryV1/2.Data
's type has been changed fromdataFile
toDataFile
(the interface type). This was the best way I could come up with to make the builders for both work, but I also feel like it diverges from the pattern a little bit. This may not be a huge deal, but something to consider. You can see how the effects rippled out a little bit in the tests.