code update recorded at: 22/04/25 10:38:35

This commit is contained in:
Abhishek Test Tiwari 2025-04-22 10:38:35 +00:00
commit 4aa369c448

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))
}