Hello World results in Internal Server Error

Maybe it’s because of CGO_ENABLED=1 … I’m not sure.

Can anyone see where I went wrong in my session?

I see the error!

/var/task/bin/hello: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /var/task/bin/hello)

Fix is to alter the Makefile with CGO_ENABLED=0, like so:

build:
	env CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go
	env CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go