Library for embedding static files inside an application
go install go.osspkg.com/static/cmd/static@latest
//go:generate static <DIR> <VAR>
- DIR - Path to the static folder
- VAR - A variable containing
static.Reader
interface
package example
import (
"fmt"
"go.osspkg.com/static"
)
//go:generate static ./.. ui
var ui static.Reader
func run() {
fmt.Println(ui.List())
}
BSD-3-Clause License. See the LICENSE file for details.