go-embedfs-http is a super small http.FileSystem that serves files from an embedded filesystem (designed for go 1.16' embed feature), while also disabling directory listings and strips the path prefix.
I outsourced this into a separate module, because I use it in multiple projects.
Add it to your go.mod like every other module:
go get github.com/d0x7/go-embedfs-http
MIT © 2023 Dorian Heinrichs