Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 无效的key ErrInvalidKVPairs = errors.New("invalid kv pairs") )
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
Attributes @Description:
func New ¶
func New(kvs ...interface{}) *Attributes
New @Description: @param kvs @return *Attributes
func (*Attributes) Value ¶
func (a *Attributes) Value(key interface{}) interface{}
Value @Description: @receiver a @param key @return interface{}
func (*Attributes) WithValues ¶
func (a *Attributes) WithValues(kvs ...interface{}) *Attributes
WithValues @Description: @receiver a @param kvs @return *Attributes
Click to show internal directories.
Click to hide internal directories.