Publish HTML quickly. https://html.house
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
272 B

  1. package htmlhouse
  2. import (
  3. "fmt"
  4. "github.com/codegangsta/negroni"
  5. "log"
  6. )
  7. func Serve() {
  8. app, err := newApp()
  9. if err != nil {
  10. log.Fatal(err)
  11. }
  12. defer app.close()
  13. n := negroni.Classic()
  14. n.UseHandler(app.router)
  15. n.Run(fmt.Sprintf(":%d", app.cfg.ServerPort))
  16. }