http - Golang serve static files from memory -


i have quick question serving files in go. there great timesaving fileserver handler, use case, have 2 or 3 files (js , css) go app , dont want complicate deployment have think those.

do think there easy way build couple of files binary , serve them there. example base64 encode data of files constants , server files constants. work in simple form, dont want go through pain of doing file server (headers, expiries, mime-types, etc) on own. there easy way bake static files binary in form , serve them way?

the "go.rice" package takes care of - embedding resources in binaries, , providing http.filesystem implementation.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -