pkger/pkging/pkgtest/testdata/ref/web/web.go

14 lines
220 B
Go
Raw Normal View History

2019-11-01 22:53:54 +03:00
package web
import (
"net/http"
"github.com/markbates/pkger"
)
func Serve() {
2019-11-05 19:44:15 +03:00
pkger.Stat("github.com/gobuffalo/buffalo:/logo.svg")
2019-11-01 22:53:54 +03:00
dir := http.FileServer(pkger.Dir("/public"))
http.ListenAndServe(":3000", dir)
}