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

14 lines
219 B
Go
Raw Permalink Normal View History

2019-11-01 22:53:54 +03:00
package web
import (
"net/http"
"github.com/markbates/pkger"
)
func Serve() {
2019-12-17 18:12:20 +03:00
pkger.Stat("github.com/markbates/pkger:/README.md")
2019-11-01 22:53:54 +03:00
dir := http.FileServer(pkger.Dir("/public"))
http.ListenAndServe(":3000", dir)
}