code: func setVersion() {
  	// A development build is one that's not at a tag or has uncommitted changes
  	devBuild = gitTag == "" || gitShortStat != ""
  
  	// Only set the appVersion if -ldflags was used
  	if gitNearestTag != "" || gitTag != "" {
  		if devBuild && gitNearestTag != "" {
  			appVersion = fmt.Sprintf("%s (+%s %s)",
  				strings.TrimPrefix(gitNearestTag, "v"), gitCommit, buildDate)
  		} else if gitTag != "" {
  			appVersion = strings.TrimPrefix(gitTag, "v")
  		}
  	}
  }
docs: // setVersion figures out the version information
  // based on variables set by -ldflags.