Back to godoc.org

Package my

v0.0.0-...-3cf7f3f
Latest Go to latest

The latest major version is .

Published: May 27, 2020 | License: GPL3 | Module: lab.nexedi.com/kirr/go123

Overview

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

Index

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