formserializer

package
v0.0.0-...-53ee791 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkbox

type Checkbox struct {
	Field
	Value bool
}

type Field

type Field struct {
	Name string
}

type FormElement

type FormElement struct {
	Name  string
	Type  formElementType
	Value string
}

type FormSerializer

type FormSerializer struct {
	Checkboxes []Checkbox
	Texts      []InputText
	Selects    []Select
}

func Serialize

func Serialize(target *goquery.Selection) FormSerializer

func SerializeForms

func SerializeForms(document *goquery.Document) FormSerializer

SerializeForms сериализует все формы найденные в документе и складывает поля в один контейнер.

type InputText

type InputText struct {
	Field
	Value string
}

type Select

type Select struct {
	Field
	Value []string
}

Jump to

Keyboard shortcuts

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