(apper Apper)
| 23 | ) |
| 24 | |
| 25 | func initGopher(apper Apper) { |
| 26 | handler := NewWFHandler(apper) |
| 27 | |
| 28 | gopher.HandleFunc("/", handler.Gopher(handleGopher)) |
| 29 | log.Info("Serving on gopher://localhost:%d", apper.App().Config().Server.GopherPort) |
| 30 | gopher.ListenAndServe(fmt.Sprintf(":%d", apper.App().Config().Server.GopherPort), nil) |
| 31 | } |
| 32 | |
| 33 | // Utility function to strip the URL from the hostname provided by app.cfg.App.Host |
| 34 | func stripHostProtocol(app *App) string { |
no test coverage detected