func (pt Provider) ForDisplay() string {
	if pt.IsZero() {
		panic("called ForDisplay on zero-value addrs.Provider")
	}
	if pt.Hostname == DefaultRegistryHost {
		return pt.Namespace + "/" + pt.Type
	}
	return pt.Hostname.ForDisplay() + "/" + pt.Namespace + "/" + pt.Type
}
ForDisplay returns a user-friendly FQN string, simplified for readability. If
the provider is using the default hostname, the hostname is omitted.
package addrs
import (
	"fmt"
	"strings"
	"golang.org/x/net/idna"
	"github.com/camptocamp/terraboard/internal/terraform/tfdiags"
	"github.com/hashicorp/hcl/v2"
	svchost "github.com/hashicorp/terraform-svchost"
)
type Provider struct {
	Type      string
	Namespace string
	Hostname  svchost.Hostname
}
const DefaultRegistryHost = svchost.Hostname("registry.terraform.io")
const BuiltInProviderHost = svchost.Hostname("terraform.io")
const BuiltInProviderNamespace = "builtin"
const LegacyProviderNamespace = "-"
func (pt Provider) String() string {
	if pt.IsZero() {
		panic("called String on zero-value addrs.Provider")
	}
	return pt.Hostname.ForDisplay() + "/" + pt.Namespace + "/" + pt.Type
}