mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime/debug: document that Stack is deprecated
Fixes #4070. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7004050
This commit is contained in:
parent
3aed92f811
commit
e49a183b76
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ func PrintStack() {
|
||||||
// For each routine, it includes the source line information and PC value,
|
// For each routine, it includes the source line information and PC value,
|
||||||
// then attempts to discover, for Go functions, the calling function or
|
// then attempts to discover, for Go functions, the calling function or
|
||||||
// method and the text of the line containing the invocation.
|
// method and the text of the line containing the invocation.
|
||||||
|
//
|
||||||
|
// This function is deprecated. Use package runtime's Stack instead.
|
||||||
func Stack() []byte {
|
func Stack() []byte {
|
||||||
return stack()
|
return stack()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue