[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #14 from paulbuis/master
Browse files Browse the repository at this point in the history
Add underscores to pkgIDs in output
  • Loading branch information
kisielk committed Nov 5, 2016
2 parents 01a6f9c + cb87066 commit 6ba642f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func main() {
color = "paleturquoise"
}

fmt.Printf("%d [label=\"%s\" style=\"filled\" color=\"%s\"];\n", pkgId, pkgName, color)
fmt.Printf("_%d [label=\"%s\" style=\"filled\" color=\"%s\"];\n", pkgId, pkgName, color)

// Don't render imports from packages in Goroot
if pkg.Goroot && !*delveGoroot {
Expand All @@ -107,7 +107,7 @@ func main() {
}

impId := getId(imp)
fmt.Printf("%d -> %d;\n", pkgId, impId)
fmt.Printf("_%d -> _%d;\n", pkgId, impId)
}
}
fmt.Println("}")
Expand Down

0 comments on commit 6ba642f

Please sign in to comment.