From: Russ Cox Date: Sat, 22 Dec 2012 22:23:50 +0000 (-0500) Subject: runtime/debug: document that Stack is deprecated X-Git-Tag: go1.1rc2~1539 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e49a183b760c6ac84d9fe8f63c26d92b5e162c01;p=gostls13.git runtime/debug: document that Stack is deprecated Fixes #4070. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7004050 --- diff --git a/src/pkg/runtime/debug/stack.go b/src/pkg/runtime/debug/stack.go index a533a5c3bf..2896b21417 100644 --- a/src/pkg/runtime/debug/stack.go +++ b/src/pkg/runtime/debug/stack.go @@ -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() }