update example

the original ex1.go is outdated