Fix some warnings with golang.
Add diagnostic printout for golang.