3 ms·
I am not a fan of the context pattern either, however one can support it without need to explicitly define that support. var fs fs.Fs fs = somefs.New()
by joshuak 6y ago
I am not a fan of the context pattern either, however one can support it without need to explicitly define that support.
var fs fs.Fs
fs = somefs.New()
fs = contextfs.New(context.TODO(), fs)
fs is now an fs with an imbedded context.