Add and modify some examples in Go to match C sources