func (p *Package) InitGlobals(pkg *ssa.Package) {
	for name, memb := range pkg.Members {
		p.Debugf("%s Package member \"%s\".%s\t%T",
			p.Module(), pkg.Pkg.Path(), name, memb)
		switch value := memb.(type) {
		case *ssa.Global:
			p.Env.Globals.PutObj(value, value)
		}
	}
}
InitGlobals initialises package-global varables in environment.
package migoinfer
import (
	"github.com/fatih/color"
	"github.com/nickng/gospal/callctx"
	"github.com/nickng/gospal/funcs"
	"golang.org/x/tools/go/ssa"
)
type Package struct {
	Env *Environment  
	*Logger
}
func NewPackage(env *Environment) *Package {
	return &Package{Env: env}
}