Documentation
¶
Overview ¶
package meta implements easy use of metadata for ordinary go types like functions, interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Caller ¶
func Caller(options ...CallerOption) string
Caller return file and line number information based on runtime.Caller but in string form with at most 3-tier directories
func CallerSkip ¶
func CallerSkip(skip int, options ...CallerOption) string
CallerSkip is similar to Caller but with skip specified
note: meta.CallerSkip(1) is equivalent to runtime.Caller(0)
Types ¶
type CallerOption ¶ added in v0.2.1
type CallerOption int
const ( // apply function name to result CallerWithoutFunctionName CallerOption = 1 << iota // apply file path to result CallerWithFilePath )
Click to show internal directories.
Click to hide internal directories.