Re:Things you probably don't know about Go (2012) [slides]
by novok on Friday October 11, 2019 @02:17AM
(#21221985)
In swift you make an interface / protocol that represents your filesystem API and then make an adapter that implements that API to the actual filesystem and swap with a mock when necessary. If the library you are using uses the filesystem directly, then you might need to make a similar interface adapter for the library.
[ Parent
| on HN ]
There are no comments on this comment yet.