mirror of https://github.com/markbates/pkger.git
14 lines
220 B
Go
14 lines
220 B
Go
|
package web
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/markbates/pkger"
|
||
|
)
|
||
|
|
||
|
func Serve() {
|
||
|
pkger.Stat("github.com/gobuffalo/buffalo:/logo.svg")
|
||
|
dir := http.FileServer(pkger.Dir("/public"))
|
||
|
http.ListenAndServe(":3000", dir)
|
||
|
}
|