Documentation ¶
Index ¶
- type JsonPage
- type Node
- func (node *Node) AddChild(page *Page) *Node
- func (node *Node) Display()
- func (node *Node) SprintJSON() ([]byte, error)
- func (node *Node) SprintTXT() (string, error)
- func (node *Node) SprintTXTColored() (string, error)
- func (node *Node) SprintXML() ([]byte, error)
- func (node *Node) ToJSONPage() *JsonPage
- func (node *Node) ToXMLPage() *XmlPage
- type Page
- func (page *Page) AddMatch(rname string, match string)
- func (page *Page) GetData() string
- func (page *Page) GetResults() map[string][]string
- func (page *Page) GetStatusCode() int
- func (page *Page) GetUrl() string
- func (page *Page) PrintPageLive(prefix *string, last bool)
- func (page *Page) SetData(s string)
- func (page *Page) SetStatusCode(code int)
- func (page *Page) SetUrl(url string)
- func (page *Page) SprintPageLine(prefix *string, last bool) string
- func (page *Page) SprintPageLineColored(prefix *string, last bool) string
- type XmlPage
- type XmlPageResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPage ¶
type JsonPage struct { URL string `json:"url"` StatusCode int `json:"status_code"` Results map[string][]string `json:"results"` Children []*JsonPage `json:"children,omitempty"` }
func NewJsonPage ¶
func NewJsonPage() *JsonPage
func (JsonPage) SprintJSON ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (*Page) GetResults ¶
func (*Page) GetStatusCode ¶
func (*Page) PrintPageLive ¶
func (*Page) SetStatusCode ¶
type XmlPage ¶
type XmlPage struct { URL string `xml:"url"` StatusCode int `xml:"status_code"` Results []*XmlPageResult `xml:"results"` Children []*XmlPage `xml:"children,omitempty"` }
func NewXmlPage ¶
func NewXmlPage() *XmlPage
type XmlPageResult ¶
Click to show internal directories.
Click to hide internal directories.