forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(model): simplify using ArchivalBinaryData (ooni#1323)
It did not originally occur to me, but now it's clear that we can avoid using a struct to wrap the data type. It just suffices to use the new type. I think this is better in terms of writing code because the only two things we need to do are: 1. make sure we have serialization and unserialization tests; 2. use the correct data type in the struct. For all intents and purposes the ArchivalBinaryData is just a special kind of []byte attached to custom marshal/unmarshal rules. Part of ooni/probe#2531
- Loading branch information
1 parent
267780c
commit da20e69
Showing
2 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters