caller

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package caller is an internal package that contains helper functions for retrieving metadata about the caller of those functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFuncFileLineInfo

func GetFuncFileLineInfo() string

GetFuncFileLineInfo is a wrapper around the runtime.Caller() function. This function returns the calling function name, filename and line number to help with debugging efforts.

func GetFuncName

func GetFuncName() string

GetFuncName is a wrapper around the runtime.Caller() function. This function returns the calling function name and discards other return values.

func GetParentFuncFileLineInfo

func GetParentFuncFileLineInfo() string

GetParentFuncFileLineInfo is a wrapper around the runtime.Caller() function. This function returns the parent calling function name, filename and line number to help with debugging efforts.

func GetParentFuncName

func GetParentFuncName() string

GetParentFuncName is a wrapper around the runtime.Caller() function. This function returns the parent calling function name and discards other return values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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