ss/static.go

10 lines
120 B
Go

package bond
import (
"net/http"
)
func Static(pth string) Handler {
return Wrap{http.FileServer(http.Dir(pth))}
}