main.go 796 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2015 Marc-Antoine Ruel. All rights reserved.
  2. // Use of this source code is governed under the Apache License, Version 2.0
  3. // that can be found in the LICENSE file.
  4. // panicparse: analyzes stack dump of Go processes and simplifies it.
  5. //
  6. // It is mostly useful on servers will large number of identical goroutines,
  7. // making the crash dump harder to read than strictly necessary.
  8. //
  9. // Colors:
  10. // - Magenta: first goroutine to be listed.
  11. // - Yellow: main package.
  12. // - Green: standard library.
  13. // - Red: other packages.
  14. //
  15. // Bright colors are used for exported symbols.
  16. package main
  17. import (
  18. "fmt"
  19. "os"
  20. "notabug.org/themusicgod1/panicparse/internal"
  21. )
  22. func main() {
  23. if err := internal.Main(); err != nil {
  24. fmt.Fprintf(os.Stderr, "Failed: %s\n", err)
  25. os.Exit(1)
  26. }
  27. }