Skip to content

Commit

Permalink
add go callvis
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sun committed Jan 26, 2024
1 parent be52872 commit 55bd7ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _posts/2024-01-09-go-experience.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func getNumber() int {
go func() {
i = 5
}()
return i
}
```

- adding waitgroups
```
func getNumber() int {
var i int
// Initialize a waitgroup variable
Expand All @@ -44,3 +44,7 @@ func getNumber() int {
}
```

- go-callvis
go-callvis is a development tool to help visualize call graph of a Go program using interactive view.
[refer](https://github.com/ondrajz/go-callvis)

0 comments on commit 55bd7ff

Please sign in to comment.