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

13 lines
166 B
Go

package web
import (
"net/http"
"github.com/markbates/pkger"
)
func Serve() {
dir := http.FileServer(pkger.Dir("/public"))
http.ListenAndServe(":3000", dir)
}