stack

package
v0.0.0-...-7b002ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(val bool)

Assert - implements a classic assert function

func CallStack

func CallStack() string

CallStack - returns a nice compressed call stack.

Types

type ErrorT

type ErrorT struct {
	Err string
	Stk string
}

ErrorT - modified error type with stack trace

func ErrorF

func ErrorF(f string, a ...interface{}) *ErrorT

ErrorF - returns an ErrorT with a fmt.Sprintf wrapper for format arguments

func ErrorS

func ErrorS(s string) *ErrorT

ErrorS - returns an ErrorT from a string

func ErrorStack

func ErrorStack(err error) *ErrorT

ErrorStack - returns the modified error

func (*ErrorT) All

func (e *ErrorT) All() string

All - method returns error string and stack as err.All()

func (*ErrorT) Error

func (e *ErrorT) Error() string

Error - method implements the Go error interface as err.Error()

func (*ErrorT) Stack

func (e *ErrorT) Stack() string

Stack - method returns the stack portion as err.Stack()

func (*ErrorT) String

func (e *ErrorT) String() string

err.String() returns the string portion

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL