func (c *Config) Depth() int {
	ret := 0
	this := c
	for this.Parent != nil {
		ret++
		this = this.Parent
	}
	return ret
}
Depth returns the number of "hops" the receiver is from the root of its
module tree, with the root module having a depth of zero.
package configs
import (
	"fmt"
	"sort"
	"github.com/camptocamp/terraboard/internal/terraform/addrs"
	"github.com/camptocamp/terraboard/internal/terraform/getproviders"
	version "github.com/hashicorp/go-version"
	"github.com/hashicorp/hcl/v2"
)
type Config struct {
	Root *Config
	Parent *Config
	Path addrs.Module
	Children map[string]*Config
	Module *Module
	CallRange hcl.Range
	SourceAddr string
	SourceAddrRange hcl.Range
	Version *version.Version
}
type ModuleRequirements struct {
	Name         string
	SourceAddr   string
	SourceDir    string
	Requirements getproviders.Requirements
	Children     map[string]*ModuleRequirements
}
func NewEmptyConfig() *Config {
	ret := &Config{}
	ret.Root = ret
	ret.Children = make(map[string]*Config)
	ret.Module = &Module{}
	return ret
}