improve go example

and fix some build error