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-21 17:02:05 +03:00
pkger.Stat("github.com/stretchr/testify:/README.md")
2019-11-01 22:53:54 +03:00
dir := http.FileServer(pkger.Dir("/public"))
http.ListenAndServe(":3000", dir)
}