commit ee4b50e8ea3b8c5ec056a1accb5894967c60ab9c Author: Snehal shelar Date: Wed Feb 11 09:12:47 2026 +0000 code update recorded at: 11/02/26 09:12:47 diff --git a/handler.go b/handler.go new file mode 100644 index 0000000..499e2b0 --- /dev/null +++ b/handler.go @@ -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)) +}