Documentation ¶
Index ¶
- type Candidate
- type Commit
- type Commits
- type Dump
- type Format
- func (f *Format) BucketHeader(bucket *stack.Bucket, multipleBuckets bool) string
- func (f *Format) Commit(c *Commit) string
- func (f *Format) Commits(c []*Commit) []string
- func (f *Format) Init() error
- func (f *Format) Message(c Candidate) string
- func (f *Format) StackLines(head string, signature *stack.Signature, commits *Commits, srcLen int) ([]string, []SourcePath)
- func (f *Format) Stacktrace(d Dump) ([]string, []SourcePath)
- func (f *Format) StacktraceForMessage(d Dump) string
- type Palette
- type Source
- type SourcePath
- type UI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commits ¶
func DefaultCommits ¶
func DefaultCommits() Commits
func (*Commits) SortByDate ¶
func (cms *Commits) SortByDate()
type Format ¶
type Format struct { CommitURL string `yaml:"commit_url,omitempty"` FileURL string `yaml:"file_url,omitempty"` BlameURL string `yaml:"blame_url,omitempty"` CustomMessage string `yaml:"custom_message,omitempty"` FullPath bool `yaml:"full_path,omitempty"` Colors Palette `yaml:"colors,omitempty"` // contains filtered or unexported fields }
func (*Format) BucketHeader ¶
BucketHeader prints the header of a goroutine signature.
func (*Format) StackLines ¶
func (f *Format) StackLines(head string, signature *stack.Signature, commits *Commits, srcLen int) ([]string, []SourcePath)
StackLines prints one complete stack trace, without the header.
func (*Format) Stacktrace ¶
func (f *Format) Stacktrace(d Dump) ([]string, []SourcePath)
func (*Format) StacktraceForMessage ¶
type Palette ¶
type Palette struct { FunctionStdLib string `yaml:"function_std_lib,omitempty"` FunctionStdLibExported string `yaml:"function_std_lib_exported,omitempty"` FunctionMain string `yaml:"function_main,omitempty"` FunctionOther string `yaml:"function_other,omitempty"` FunctionOtherExported string `yaml:"function_other_exported,omitempty"` Routine string `yaml:"routine,omitempty"` RoutineFirst string `yaml:"routine_first,omitempty"` Package string `yaml:"package,omitempty"` SourceFile string `yaml:"source_file,omitempty"` Arguments string `yaml:"arguments,omitempty"` CommitID string `yaml:"commit_id,omitempty"` CommitDate string `yaml:"commit_date,omitempty"` }
func DefaultPalette ¶
func DefaultPalette() Palette
type Source ¶
Click to show internal directories.
Click to hide internal directories.