my

package
Version: v0.0.0-...-01e8697 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

Package my provides easy way to determine current function's name and context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File() string

File returns path of currently running function's file.

func Frame

func Frame() runtime.Frame

Frame returns currently running functions's frame.

func FuncName

func FuncName() string

FuncName returns name of currently running function.

i.e. the name of FuncName caller.

name is fully qualified package/name.function(.x)

func Line

func Line() int

Line returns currently running function's line.

func PkgName

func PkgName() string

PkgName returns name of currently running function's package.

package is fully qualified package/name.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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