Documentation
¶
Overview ¶
Package tag provides a StringValuePair - a named value
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Friendly ¶
type Friendly interface { UserFriendly // use.go }
Friendly - interface exposed for go doc only
I love to be friendly - thus: I give You a simple API!
Create me with New(name) or Tag(name, stuff)
type TagAny ¶
type TagAny struct {
// contains filtered or unexported fields
}
TagAny is a concurrency safe string-named any-value (string-any pair)
type UserFriendly ¶
type UserFriendly interface { Tag(val interface{}) // Set/replace AnyValue/Payload String() string // implement `fmt.Stringer` K() string // returns my Key as string (shortcut for String()) V() string // returns my Value as string (via ats.GetString) GetV() interface{} // returns my Value as is }
UserFriendly - interface exposed for go doc only
I love to be easy - easy to use:
use me to Tag stuff, use K (or String) to get my name use V to get the name of my stuff use GetV to get my stuff use me, as You please :-)
Hint: I behave like a named variable - just with other names
Thus: You may like to use me, where 'normal' methodnames are used otherwise ;-)
Click to show internal directories.
Click to hide internal directories.