Initial commit: Go DNS microservice boilerplate

This commit is contained in:
Aiden Smith
2026-02-24 13:44:34 -05:00
commit 247f81d616
13 changed files with 451 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package handler
import (
"encoding/json"
"net/http"
)
func Health(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(map[string]string{
"status": "ok",
"version": "0.1.0",
})
}