You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func (app *application) HealthCheckHandler(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintln(w, "status: available!")
|
|
fmt.Fprintf(w, "environment: %s\n", app.config.env)
|
|
fmt.Fprintf(w, "version: %s\n", Version)
|
|
}
|