code update recorded at: 28/01/26 11:01:04

This commit is contained in:
Akansha Kardam 2026-01-28 11:01:04 +00:00
commit d9b458389e

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