commit 4aa369c448cc2a80efae54c618d218c8a7953610 Author: Abhishek Test Tiwari Date: Tue Apr 22 10:38:35 2025 +0000 code update recorded at: 22/04/25 10:38:35 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)) +}