code: func version() string {
  	// Start with the major, minor, and patch versions.
  	version := fmt.Sprintf("%d.%d.%d", appMajor, appMinor, appPatch)
  
  	// Append pre-release version if there is one.  The hyphen called for
  	// by the semantic versioning spec is automatically appended and should
  	// not be contained in the pre-release string.  The pre-release version
  	// is not appended if it contains invalid characters.
  	preRelease := normalizeVerString(appPreRelease)
  	if preRelease != "" {
  		version = fmt.Sprintf("%s-%s", version, preRelease)
  	}
  
  	// Append build metadata if there is any.  The plus called for
  	// by the semantic versioning spec is automatically appended and should
  	// not be contained in the build metadata string.  The build metadata
  	// string is not appended if it contains invalid characters.
  	build := normalizeVerString(appBuild)
  	if build != "" {
  		version = fmt.Sprintf("%s+%s", version, build)
  	}
  
  	return version
  }
docs: // version returns the application version as a properly formed string per the
  // semantic versioning 2.0.0 spec (http://semver.org/).