code update recorded at: 22/04/25 10:38:35
This commit is contained in:
commit
4aa369c448
|
|
@ -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))
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user