Back to

Package my

Latest Go to latest

The latest major version is .

Published: May 27, 2020 | License: GPL3 | Module:


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


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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier