go123: lab.nexedi.com/kirr/go123/my Index | Files

package my

import "lab.nexedi.com/kirr/go123/my"

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


Package Files


func File Uses

func File() string

File returns path of currently running function's file.

func Frame Uses

func Frame() runtime.Frame

Frame returns currently running functions's frame.

func FuncName Uses

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 Uses

func Line() int

Line returns currently running function's line.

func PkgName Uses

func PkgName() string

PkgName returns name of currently running function's package.

package is fully qualified package/name.

Package my imports 3 packages (graph) and is imported by 3 packages. Updated 2020-07-07. Refresh now. Tools for package owners.