commit 8297115158bab3c3fa554fb48392036aea8b8c34 Author: Akansha Kardam Date: Wed Jan 28 11:01:04 2026 +0000 code update recorded at: 28/01/26 11:01:04 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)) +}