Writing REST API Client in Go