mirror of
https://github.com/golang/go
synced 2024-11-23 04:10:04 -07: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
@ -29,6 +29,8 @@ func PrintStack() {
|
||||
// For each routine, it includes the source line information and PC value,
|
||||
// then attempts to discover, for Go functions, the calling function or
|
||||
// method and the text of the line containing the invocation.
|
||||
//
|
||||
// This function is deprecated. Use package runtime's Stack instead.
|
||||
func Stack() []byte {
|
||||
return stack()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user