Check out the suggestion from @dmitshur at https://github.com/andygrunwald/go-gerrit/pull/62#pullrequestreview-153591080 This might make sense and leads to better readable code.