[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #1 from paulbuis/paulbuis-patch-1
Browse files Browse the repository at this point in the history
Added _ before %d when outputting pkgId's
  • Loading branch information
paulbuis committed Oct 24, 2016
2 parents 01a6f9c + 3484f1a commit cb87066
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 cb87066

Please sign in to comment.