code update recorded at: 11/02/26 09:12:47

This commit is contained in:
Snehal S shelar 2026-02-11 09:12:47 +00:00
commit ee4b50e8ea

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