The gophers party all night; the rabbits provide the beats. Main is the principal entry point for an app running in App Engine. On App Engine Flexible it installs a trivial health checker if one isn't already registered, and starts listening on port 8080 (overridden by the $PORT environment variabl
()
| 51 | // The "myapp/packageX" packages are expected to register HTTP handlers |
| 52 | // in their init functions. |
| 53 | func Main() { |
| 54 | internal.Main() |
| 55 | } |
| 56 | |
| 57 | // Middleware wraps an http handler so that it can make GAE API calls |
| 58 | var Middleware func(http.Handler) http.Handler = internal.Middleware |