even though it's a little more verbose, I think the following style is a little clearer:

```go
var url_ string
if publicOnly {
  url_ = fmt.Sprintf("users/%v/events", user)
} else {
  url_ = fmt.Sprintf("users/%v/events/public", user)
}
```