geerlingguy / ansible-for-kubernetes

Ansible and Kubernetes examples from Ansible for Kubernetes Book

Home Page:https://www.ansibleforkubernetes.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In Hello Go app example, add a line 'Starting webserver...'

geerlingguy opened this issue · comments

Add the following line in main() in the hello.go app:

log.Printf("Starting webserver on %s", addr)

(After the handler line.)

That way, when you start the server, you see a message that makes it obvious the app is ready to serve requests:

$ go run cmd/hello/hello.go
2020/11/24 17:24:49 Starting webserver on :8180