func (t *TypeLookup) GetTypeByPath(path []string) string {
	entry, exists := t.treeRoot[path[0]]
	if exists {
		return getTypeByPath(entry, path[1:])
	}
	return ""
}
GetTypeByPath returns the YANG type string for the given OpenConfig path.
package openconfig
import (
	"os"
	"path/filepath"
	"sort"
	"strings"
	"github.com/openconfig/goyang/pkg/yang"
)
type TypeLookup struct {
	modelDirectory string
	treeRoot       map[string]*yang.Entry
}