gitlab.com/evatix-go/core@v1.3.55/errcore/StackTracesCompiled.go (about)

     1  package errcore
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  // StackTracesCompiled
     8  //
     9  // CodeStacksHeaderNewLine + PrefixStackTrace + JoinedWith(PrefixStackTraceNewLine)
    10  //
    11  // Example:
    12  //  - "Code Stack :\n- JoinLinesWith(\n- )"
    13  func StackTracesCompiled(traces []string) string {
    14  	tracesCompiled := CodeStacksHeaderNewLine +
    15  		PrefixStackTrace +
    16  		strings.Join(traces, PrefixStackTraceNewLine)
    17  
    18  	return tracesCompiled
    19  }