def METHOD_NAME(self, include_version=True):
    version = None
    if include_version:
        version = self.version
    return PackageURL(
                type='golang',
                namespace=self.namespace,
                name=self.name,
                version=version
            ).to_string()