code update recorded at: 09/02/26 06:36:05

This commit is contained in:
Sukhpreet Lohiya 2026-02-09 06:36:05 +00:00
commit d893e97da5

15
handler.go Normal file
View File

@ -0,0 +1,15 @@
package main
import (
"net/http"
"os"
)
// Handler function to handle requests
func handler(w http.ResponseWriter, r *http.Request) {
foo := os.Getenv("FOO")
if foo == "" {
foo = "Specified environment variable is not set."
}
w.Write([]byte(foo))
}