commit f6a4caf32d2df247520d1e871a68c57d5d5e70ee Author: Sukhpreet Lohiya Date: Mon Feb 9 06:36:05 2026 +0000 code update recorded at: 09/02/26 06:36:05 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)) +}