Пример #1
0
// NewBuilder creates a new builder with a particular home directory
func NewBuilder(home Home) *Builder {
	return &Builder{
		home:       home,
		pkgs:       make(map[string]*pkg),
		deps:       make(map[string][]string),
		linkPkgs:   make(map[string]*link8.Pkg),
		debugFuncs: debug8.NewFuncs(),
		InitPC:     arch8.InitPC,
	}
}
Пример #2
0
// NewBuilder creates a new builder with a particular home directory
func NewBuilder(input Input, output Output) *Builder {
	return &Builder{
		input:      input,
		output:     output,
		pkgs:       make(map[string]*pkg),
		deps:       make(map[string][]string),
		linkPkgs:   make(map[string]*link8.Pkg),
		debugFuncs: debug8.NewFuncs(),
		Options:    new(Options),
	}
}