fix some bugs in go examples and add some go examples