code: func (d *diagnosticsCollector) compareVersion(value string) error {
  	currentVersion := versionSegments(value)
  	localVersion := versionSegments(d.version)
  
  	if localVersion[0] < currentVersion[0] { //Major
  		return fmt.Errorf("you are running Pilosa %s, a newer version (%s) is available: https://github.com/pilosa/pilosa/releases", d.version, value)
  	} else if localVersion[1] < currentVersion[1] && localVersion[0] == currentVersion[0] { // Minor
  		return fmt.Errorf("you are running Pilosa %s, the latest minor release is %s: https://github.com/pilosa/pilosa/releases", d.version, value)
  	} else if localVersion[2] < currentVersion[2] && localVersion[0] == currentVersion[0] && localVersion[1] == currentVersion[1] { // Patch
  		return fmt.Errorf("there is a new patch release of Pilosa available: %s: https://github.com/pilosa/pilosa/releases", value)
  	}
  
  	return nil
  }
docs: // compareVersion check version strings.