From e49a183b760c6ac84d9fe8f63c26d92b5e162c01 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 22 Dec 2012 17:23:50 -0500 Subject: [PATCH] runtime/debug: document that Stack is deprecated Fixes #4070. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7004050 --- src/pkg/runtime/debug/stack.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/debug/stack.go b/src/pkg/runtime/debug/stack.go index a533a5c3bf4..2896b21417a 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() }