5 ms·
Assuming I understand you, it would be easy via an interface. Build an interface for the go.rice (or go-binddata/etc) such that, depending on the environment,
by notheguyouthink 9y ago
Assuming I understand you, it would be easy via an interface.
Build an interface for the go.rice (or go-binddata/etc) such that, depending on the environment, it either pulls the file from disk or from memory. Super easy.
I seem to recall seeing a Go library that actually has this functionality built in, but I've got no idea which it was.