1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // The gostacks command processes stdin looking for things that look like
6 // stack traces and simplifying them to make the log more readable.
7 // It collates stack traces that have the same path as well as simplifying the
8 // individual lines of the trace.
9 // The processed log is printed to stdout.
16 "golang.org/x/tools/internal/stack"
20 if err := stack.Process(os.Stdout, os.Stdin); err != nil {
21 fmt.Fprintln(os.Stderr, err)