16 lines
243 B
Go
16 lines
243 B
Go
package http
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
)
|
|
|
|
func RequestHandler(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprint(w, "Hello, World!")
|
|
}
|
|
|
|
func HealthHandler(w http.ResponseWriter, _ *http.Request) {
|
|
_, _ = io.WriteString(w, "OK")
|
|
}
|