Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VarName ¶
type VarName string
VarName represents variable name.
It has dot-separated format, like "memstats.Alloc", but can be used in different forms, hence it's own type.
It also can have optional "kind:" modifier, like "mem:" or "duration:"
func (VarName) Short ¶
Short returns short name, which is typically is the last word in the long names.
func (VarName) ToSlice ¶
ToSlice converts "dot-separated" notation into the "slice of strings".
"dot-separated" notation is a human-readable format, passed via args. "slice of strings" is used by Jason library.
Example: "memstats.Alloc" => []string{"memstats", "Alloc"} Example: "mem:memstats.Alloc" => []string{"memstats", "Alloc"}
Click to show internal directories.
Click to hide internal directories.