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

13 lines
166 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() {
dir := http.FileServer(pkger.Dir("/public"))
http.ListenAndServe(":3000", dir)
}