Skip to content

Commit

Permalink
tips(go/go-learn/memory): 初识协程栈
Browse files Browse the repository at this point in the history
  • Loading branch information
TIGERB committed Aug 27, 2023
1 parent 6f61a58 commit 13cf26d
Show file tree
Hide file tree
Showing 2 changed files with 443 additions and 0 deletions.
13 changes: 13 additions & 0 deletions go/go-learn/memory/demo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

// go tool compile -N -l -S *.go
func main() {
a := 1
b := 2
_ = a + b
go func() {
i := 1
// j := 2
_ = i + i
}()
}
Loading

0 comments on commit 13cf26d

Please sign in to comment.