Generate Go (Golang) package, that embeds static/public files and provides HTTP handler to serve them
-
Updated
Feb 12, 2017 - Go
Generate Go (Golang) package, that embeds static/public files and provides HTTP handler to serve them
A simple utility to encode a file (or any other data) into a Go byte array.
GoEmbed generates a file that you may include in your project to include a file's content as code, embedded within the binary.
Embed file in your Go code
a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
Takes an input http.FileSystem (likely at go generate time) and generates Go code that statically implements it.
Add a description, image, and links to the embed-files topic page so that developers can more easily learn about it.
To associate your repository with the embed-files topic, visit your repo's landing page and select "manage topics."