GoPLS Viewer

Home|gopls/internal/stack/gostacks/gostacks.go
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.
4
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.
10package main
11
12import (
13    "fmt"
14    "os"
15
16    "golang.org/x/tools/internal/stack"
17)
18
19func main() {
20    if err := stack.Process(os.Stdoutos.Stdin); err != nil {
21        fmt.Fprintln(os.Stderrerr)
22    }
23}
24
MembersX
main
main.err
fmt
os
stack
Members
X