ansible-for-kubernetes icon indicating copy to clipboard operation
ansible-for-kubernetes copied to clipboard

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

Open geerlingguy opened this issue 4 years ago • 0 comments
trafficstars

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

geerlingguy avatar Nov 24 '20 23:11 geerlingguy