var dynamicGitVersion … func init() { … } // SetDynamicVersion overrides the version returned as the GitVersion from Get(). // The specified version must be non-empty, a valid semantic version, and must // match the major/minor/patch version of the default gitVersion. func SetDynamicVersion(dynamicVersion string) error { … } // ValidateDynamicVersion ensures the given version is non-empty, a valid semantic version, // and matched the major/minor/patch version of the default gitVersion. func ValidateDynamicVersion(dynamicVersion string) error { … } func validateDynamicVersion(dynamicVersion, defaultVersion string) error { … }