You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod_resource_walk.go
    path of file: ./repos/steampipe/pkg/steampipeconfig/modconfig
    
    the code of the file until where you have to start completion: package modconfig

// get the parent item for this ModTreeItem
func (m *Mod) getParents(item ModTreeItem) []ModTreeItem {
	var parents []ModTreeItem

	resourceFunc := func(parent HclResource) (bool, error) {
		if treeItem, ok := pa
    
func (m *Mod) containsResource(childName string) bool {
	var res bool

	resourceFunc := func(item HclResource) (bool, error) {
		if item.Name() == childName {
			res = true
			// break out of resource walk
			return false, nil
		}
		// continue walking
		return true, nil
	}
	m.ResourceMaps.WalkResources(resourceFunc)
	return res
}