forked from mirror/pkger
13 lines
166 B
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)
|
||
|
}
|