pip compatible server to serve Python packages out of GitHub
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.
 
 
 

23 lines
470 B

// +build appengine
package goji
import (
"log"
"net/http"
)
func init() {
if fl := log.Flags(); fl&log.Ltime != 0 {
log.SetFlags(fl | log.Lmicroseconds)
}
}
// Serve starts Goji using reasonable defaults.
func Serve() {
DefaultMux.Compile()
// Install our handler at the root of the standard net/http default mux.
// This is required for App Engine, and also allows packages like expvar
// to continue working as expected.
http.Handle("/", DefaultMux)
}