Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: