package keys

Import Path
	golang.org/x/tools/internal/event/keys (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 3 packages

Involved Source Files keys.go standard.go util.go
Package-Level Type Names (total 7, all are exported)
/* sort exporteds by: | */
Error represents a key (*Error) Append(buf []byte, l label.Label) []byte (*Error) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*Error) Name() string Of returns a new Label with this key and the supplied value. *Error : golang.org/x/tools/internal/event/label.Key func NewError(name, description string) *Error var Err *Error
Float is a label.Key for floating-point values. (*Float) Append(buf []byte, l label.Label) []byte (*Float) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*Float) Name() string Of creates a new Label with this key and the supplied value. *Float : golang.org/x/tools/internal/event/label.Key func NewFloat(name, description string) *Float
Int is a [label.Key] for signed integers. (*Int) Append(buf []byte, l label.Label) []byte (*Int) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*Int) Name() string Of creates a new Label with this key and the supplied value. Of64 creates a new Label with this key and the supplied value. *Int : golang.org/x/tools/internal/event/label.Key func NewInt(name, description string) *Int
String represents a key (*String) Append(buf []byte, l label.Label) []byte (*String) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*String) Name() string Of creates a new Label with this key and the supplied value. *String : golang.org/x/tools/internal/event/label.Key func NewString(name, description string) *String var Msg *String var Start *String
Tag represents a key for tagging labels that have no value. These are used when the existence of the label is the entire information it carries, such as marking events to be of a specific kind, or from a specific package. (*Tag) Append(buf []byte, l label.Label) []byte (*Tag) Description() string (*Tag) Name() string New creates a new Label with this key. *Tag : golang.org/x/tools/internal/event/label.Key func NewTag(name, description string) *Tag var Detach *Tag var End *Tag var Label *Tag var Metric *Tag
Uint is a [label.Key] for unsigned integers. (*Uint) Append(buf []byte, l label.Label) []byte (*Uint) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*Uint) Name() string Of creates a new Label with this key and the supplied value. *Uint : golang.org/x/tools/internal/event/label.Key func NewUint(name, description string) *Uint
Value is a [label.Key] for untyped values. (*Value) Append(buf []byte, l label.Label) []byte (*Value) Description() string From returns the value of a Label. Get returns the label for the key of a label.Map. (*Value) Name() string Of creates a new Label with this key and the supplied value. *Value : golang.org/x/tools/internal/event/label.Key func New(name, description string) *Value
Package-Level Functions (total 8, all are exported)
Type Parameters: S: ~[]T T: ~string Join returns a canonical join of the keys in S: a sorted comma-separated string list.
New creates a new Key for untyped values.
NewError returns a new [label.Key] for error values.
NewFloat creates a new [label.Key] for floating-point values.
NewInt returns a new [label.Key] for int64 values.
NewString creates a new Key for int64 values.
NewTag creates a new [label.Key] for tagging labels.
NewUint creates a new [label.Key] for unsigned values.
Package-Level Variables (total 7, all are exported)
Metric is a key used to indicate an event records metrics.
Metric is a key used to indicate an event records metrics.
Err is a key used to add error values to label lists.
Label is a key used to indicate an event adds labels to the context.
Metric is a key used to indicate an event records metrics.
Msg is a key used to add message strings to label lists.
Start is used for things like traces that have a name.