Reviewers: golang-dev_googlegroups.com,
Message:
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go/
Description:
runtime/debug: document that Stack is deprecated
Fixes issue 4070.
Please review this at https://codereview.appspot.com/7004050/
Affected files:
M src/pkg/runtime/debug/stack.go
Index: src/pkg/runtime/debug/stack.go
===================================================================
--- a/src/pkg/runtime/debug/stack.go
+++ b/src/pkg/runtime/debug/stack.go
@@ -29,6 +29,8 @@
// 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()
}