-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
606 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/xhd2015/xgo v1.0.47-0.20240726085913-ddb79e33f33b h1:D0+4qUvmlcG2QTi6RU7xBnzemRrLyM7QYnYVd4jhR+g= | ||
github.com/xhd2015/xgo v1.0.47-0.20240726085913-ddb79e33f33b/go.mod h1:LJxlcYSaXo/9YpsnB3yHh9NHe7BRettYCytaNGWY2BE= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package snapshot | ||
|
||
type _InOut struct { | ||
Last string | ||
Count int | ||
} | ||
|
||
type _Response struct { | ||
Last string | ||
Count int | ||
} | ||
|
||
func handleL1() *_Response { | ||
_, resp := handleL2() | ||
resp.Last = "handleL1" | ||
resp.Count++ | ||
return resp | ||
} | ||
|
||
func handleL2() (*_InOut, *_Response) { | ||
a := &_InOut{ | ||
Last: "handleL2", | ||
} | ||
resp := handleL3(a) | ||
|
||
resp.Last = "handleL2" | ||
resp.Count++ | ||
return a, resp | ||
} | ||
|
||
func handleL3(a *_InOut) *_Response { | ||
a.Last = "handleL3" | ||
a.Count++ | ||
return &_Response{ | ||
Last: "handleL3", | ||
} | ||
} |
Oops, something went wrong.