skeleton/assets/dev.go

20 lines
489 B
Go
Raw Normal View History

2019-05-14 14:11:03 +02:00
// +build dev
package assets
import (
"net/http"
"github.com/shurcooL/httpfs/union"
)
// Assets contains files that will be included in the binary
// this is a union file system, so to reach the expected file
// the root folder defined in the map should be prepended
// to the file path
var Assets = union.New(map[string]http.FileSystem{
2019-12-14 07:27:15 +01:00
"/migrations": http.Dir("./assets/migrations"),
"/templates": http.Dir("./assets/templates"),
"/static": http.Dir("./assets/static"),
2019-05-14 14:11:03 +02:00
})