Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCopyFrom ¶
func NewCopyFrom(a Attrs) *attrs
NewCopyFrom copies attributes from a and returns it.
func NewFromMap ¶ added in v0.0.3
NewFromMap creates new attributes from a and returns it.
Types ¶
type Attrs ¶
type Attrs interface { // Keys returns all attribute keys. Keys() []string // Get returns the attribute value for the given key. Get(string) string // Set sets the value of the attribute for the given key. Set(string, string) }
Attrs provide a simple key-value store for storing arbitrary entity attributes.
Click to show internal directories.
Click to hide internal directories.