common

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(ctx context.Context) context.Context

func SetIfNeed

func SetIfNeed(ctx context.Context) context.Context

Types

type AtRule

type AtRule string

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)

func (*ElementData) SetStyle

func (ed *ElementData) SetStyle(rule AtRule, selector Selector, key Key, value Value)

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)

type Key

type Key string

type Selector

type Selector string

type Value

type Value string
const (
	EmptyValue Value = ""
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL