Documentation ¶
Index ¶
- Constants
- Variables
- func DeserializeStyles(input values.String) (*values.Object, error)
- func GetInDocument(ctx context.Context, doc drivers.HTMLDocument, path []core.Value) (core.Value, error)
- func GetInElement(ctx context.Context, el drivers.HTMLElement, path []core.Value) (core.Value, error)
- func GetInNode(ctx context.Context, node drivers.HTMLNode, path []core.Value) (core.Value, error)
- func GetUserAgent(val string) string
- func IsAttribute(name string) bool
- func NewIterator(node drivers.HTMLElement) (core.Iterator, error)
- func PathToString(path []core.Value) string
- func SerializeStyles(_ context.Context, styles *values.Object) values.String
- func SetInDocument(ctx context.Context, doc drivers.HTMLDocument, path []core.Value, ...) error
- func SetInElement(ctx context.Context, el drivers.HTMLElement, path []core.Value, ...) error
- func SetInNode(_ context.Context, _ drivers.HTMLNode, path []core.Value, _ core.Value) error
- func ToHTMLType(nt html.NodeType) int
- type Iterator
- type LazyValue
- type LazyValueFactory
Constants ¶
View Source
const RandomUserAgent = "*"
Variables ¶
View Source
var ( ErrReadOnly = core.Error(core.ErrInvalidOperation, "read only") ErrInvalidPath = core.Error(core.ErrInvalidOperation, "invalid path") )
View Source
var Attributes = []string{}/* 135 elements not displayed */
Functions ¶
func DeserializeStyles ¶ added in v0.7.0
func GetInDocument ¶ added in v0.7.0
func GetInElement ¶ added in v0.7.0
func GetUserAgent ¶
func IsAttribute ¶
func NewIterator ¶ added in v0.7.0
func NewIterator( node drivers.HTMLElement, ) (core.Iterator, error)
func PathToString ¶ added in v0.7.0
func SerializeStyles ¶ added in v0.7.0
func SetInDocument ¶ added in v0.7.0
func SetInElement ¶ added in v0.7.0
func ToHTMLType ¶
Types ¶
type LazyValue ¶
func NewLazyValue ¶
func NewLazyValue(factory LazyValueFactory) *LazyValue
func (*LazyValue) Read ¶
Read returns an underlying value. Not thread safe. Should not mutated. @returns (Value) - Underlying value if successfully loaded, otherwise error
func (*LazyValue) Ready ¶
Ready indicates whether the value is ready. @returns (Boolean) - Boolean value indicating whether the value is ready.
Click to show internal directories.
Click to hide internal directories.