code: func (b *buildEntity) addViewPath() {
  	if b == nil {
  		// Could be nil e.g. as part of a query result.
  		return
  	}
  	b.ViewPath = (&model.BuildSummary{
  		BuildID: fmt.Sprintf("buildbot/%s/%s/%d", b.Master, b.Buildername, b.Number),
  	}).SelfLink()
  }
docs: // addViewPath populates the 'ViewPath' field of the underlying buildbot.Build
  // struct.