32 lines
788 B
Go
32 lines
788 B
Go
// Copyright 2015 Marc-Antoine Ruel. All rights reserved.
|
|
// Use of this source code is governed under the Apache License, Version 2.0
|
|
// that can be found in the LICENSE file.
|
|
|
|
// panicparse: analyzes stack dump of Go processes and simplifies it.
|
|
//
|
|
// It is mostly useful on servers will large number of identical goroutines,
|
|
// making the crash dump harder to read than strictly necesary.
|
|
//
|
|
// Colors:
|
|
// - Magenta: first goroutine to be listed.
|
|
// - Yellow: main package.
|
|
// - Green: standard library.
|
|
// - Red: other packages.
|
|
//
|
|
// Bright colors are used for exported symbols.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/maruel/panicparse/internal"
|
|
)
|
|
|
|
func main() {
|
|
if err := internal.Main(); err != nil {
|
|
fmt.Fprintf(os.Stderr, "Failed: %s\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|