Exemple #1
0
func logDepMap(pinfo *build8.PkgInfo, deps []byte) error {
	w := pinfo.CreateLog("depmap")
	if _, err := w.Write(deps); err != nil {
		return err
	}
	return w.Close()
}
Exemple #2
0
func logDeps(pinfo *build8.PkgInfo, g *dagvis.Graph) error {
	bs, err := json.MarshalIndent(g.Nodes, "", "    ")
	if err != nil {
		panic(err)
	}

	w := pinfo.CreateLog("deps")
	if _, err := w.Write(bs); err != nil {
		return err
	}
	return w.Close()
}
Exemple #3
0
func logIr(pinfo *build8.PkgInfo, b *builder) error {
	w := pinfo.CreateLog("ir")
	ir.PrintPkg(w, b.p)
	return w.Close()
}