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: appmon.go
    path of file: ./repos/ergo/apps/erlang
    
    the code of the file until where you have to start completion: package erlang

// TODO: https://github.com/erlang/otp/blob/master/lib/runtime_tools-1.13.1/src/appmon_info.erl

import (
	"time"

	"github.com/ergo-services/ergo/etf"
	"github.com/ergo-services/ergo/gen"
	"github.com/ergo-services/ergo/lib"
	"github.com/
    
func (am *appMon) makeAppTree(process gen.Process, app etf.Atom) etf.Tuple {
	node := process.Env(node.EnvKeyNode).(node.Node)
	appInfo, err := node.ApplicationInfo(string(app))
	if err != nil {
		return nil
	}

	resolver := make(map[etf.Pid]interface{})

	tree := makeTree(process, resolver, appInfo.PID)
	children := etf.List{etf.Tuple{appInfo.PID, appInfo.PID.String()}}
	for p, n := range resolver {
		children = append(children, etf.Tuple{p, n})
	}

	appTree := etf.Tuple{
		appInfo.PID.String(), // pid or registered name
		children,
		tree,
		etf.List{}, // TODO: links
	}

	return appTree
}