Documentation ¶
Index ¶
- func Set(ctx context.Context) context.Context
- func SetIfNeed(ctx context.Context) context.Context
- type AtRule
- type ElementData
- func (ed *ElementData) DropAttribute(k Key)
- func (ed *ElementData) GetAttribute(k Key) Value
- func (ed *ElementData) GetAttributes() string
- func (ed *ElementData) SetAttribute(k Key, v Value)
- func (ed *ElementData) SetClass(class string)
- func (ed *ElementData) SetStyle(rule AtRule, selector Selector, key Key, value Value)
- type GlobalData
- type Key
- type Selector
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ElementData ¶
type ElementData struct {
// contains filtered or unexported fields
}
func (*ElementData) DropAttribute ¶
func (ed *ElementData) DropAttribute(k Key)
func (*ElementData) GetAttribute ¶
func (ed *ElementData) GetAttribute(k Key) Value
func (*ElementData) GetAttributes ¶
func (ed *ElementData) GetAttributes() string
func (*ElementData) SetAttribute ¶
func (ed *ElementData) SetAttribute(k Key, v Value)
func (*ElementData) SetClass ¶
func (ed *ElementData) SetClass(class string)
type GlobalData ¶
type GlobalData struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(ctx context.Context) *GlobalData
func (*GlobalData) DisableStyle ¶
func (gd *GlobalData) DisableStyle()
func (*GlobalData) ElementData ¶
func (gd *GlobalData) ElementData() *ElementData
func (*GlobalData) EnableStyle ¶
func (gd *GlobalData) EnableStyle()
func (*GlobalData) ExtractData ¶
func (gd *GlobalData) ExtractData() map[Key]Value
func (*GlobalData) WriteStyle ¶
func (gd *GlobalData) WriteStyle(wr io.Writer)
Click to show internal directories.
Click to hide internal directories.