package main import ( "net/http" "git.thevis.us/skepto/env" "git.thevis.us/skepto/rex" ) type Server interface { Run() Get(pattern string, handler interface{}) ServeHTTP(w http.ResponseWriter, r *http.Request) } func main() { srv := Configure() srv.Run() } func Configure() Server { env.Set("PORT", 7777) server := rex.New() server.Get("/", Index) return server }