github.com/suedadam/up@v0.1.12/http/static/static.go (about)

     1  package static
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/apex/up"
     7  )
     8  
     9  // New static handler.
    10  func New(c *up.Config) http.Handler {
    11  	return http.FileServer(http.Dir(c.Static.Dir))
    12  }