readability

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context) (*Client, error)

func (*Client) Close

func (obj *Client) Close()

func (*Client) Parse

func (obj *Client) Parse(url, content string, options ...ParseOption) (gjson.Result, error)

type ParseOption

type ParseOption struct {
	MaxElemsToParse   int    `json:"maxElemsToParse,omitempty"`
	NbTopCandidates   int    `json:"nbTopCandidates,omitempty"`
	CharThreshold     int    `json:"charThreshold,omitempty"`
	ClassesToPreserve string `json:"classesToPreserve,omitempty"`
	KeepClasses       bool   `json:"keepClasses,omitempty"`
	Serializer        string `json:"serializer,omitempty"`
	DisableJsonLd     bool   `json:"disableJSONLD,omitempty"`
}

Jump to

Keyboard shortcuts

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