Categorygithub.com/ddo/pick
modulepackage
1.2.2
Repository: https://github.com/ddo/pick.git
Documentation: pkg.go.dev

# README

pick Build Status

pick stuff from html

installation

go get -u gopkg.in/ddo/pick.v1

TODO:

  • #GetForm
  • NewTokenizerFragment
  • NextIsNotRawText
  • 1 testing html but cover all cases
  • script
  • AllowCDATA
  • benchmark

# Packages

No description provided by the author

# Functions

PickAttr gets attribute Option.Attr of elements that matches the Option.TagName.
input can be input/select/textarea TODO: now only get 1st value, need []string as result TODO: pick select option that has no value attr TODO: radio.
PickHtml gets html of elements that matches the Option.TagName (including it's child elements).
PickText gets text of elements that matches the Option.TagName (including it's child elements).

# Structs

Attr to define an element's attribute <input type="hidden" /> -> Attr{Label: "type", Value: "hidden"}.
Option PageSource: html reader TagName: element's tag.