Documentation ¶
Overview ¶
Package attrs provide two attributes containers, designed for embed to other types
Index ¶
- type Attrs
- type LockedValues
- func (v *LockedValues) AllAttrs() Values
- func (v *LockedValues) Attr(key string) interface{}
- func (v *LockedValues) Clear()
- func (v *LockedValues) GetSetAttr(key string, val interface{}) interface{}
- func (v *LockedValues) IsAttrExist(key string) bool
- func (v *LockedValues) SetAttr(key string, val interface{})
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attrs ¶
type Attrs interface { Attr(name string) interface{} // if value is nil, remove it SetAttr(name string, value interface{}) GetSetAttr(name string, value interface{}) interface{} IsAttrExist(name string) bool AllAttrs() Values Clear() }
Attrs is a common container store attribute
type LockedValues ¶
func (*LockedValues) AllAttrs ¶
func (v *LockedValues) AllAttrs() Values
func (*LockedValues) Attr ¶
func (v *LockedValues) Attr(key string) interface{}
func (*LockedValues) Clear ¶
func (v *LockedValues) Clear()
func (*LockedValues) GetSetAttr ¶
func (v *LockedValues) GetSetAttr(key string, val interface{}) interface{}
func (*LockedValues) IsAttrExist ¶
func (v *LockedValues) IsAttrExist(key string) bool
func (*LockedValues) SetAttr ¶
func (v *LockedValues) SetAttr(key string, val interface{})
type Values ¶
type Values map[string]interface{}
func (Values) GetSetAttr ¶
func (Values) IsAttrExist ¶
Click to show internal directories.
Click to hide internal directories.