caller

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package caller contains convenience functions to get function caller information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStackInfoFunc

func CreateStackInfoFunc(depth int, shorten bool) func() string

CreateStackInfoFunc returns a closure function that for a given depth returns stack caller information (file and line).

func CreateStackInfoWithFuncnameFunc

func CreateStackInfoWithFuncnameFunc(depth int, shorten bool, withFn bool) func() string

CreateStackInfoWithFuncnameFunc returns a closure function that for a given depth returns stack caller information (file, line and function name *if* found).

func GetStackInfo

func GetStackInfo(depth int) string

GetStackInfo returns caller stack information (file and line) for a given depth.

Types

This section is empty.

Jump to

Keyboard shortcuts

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