models

package
v0.0.0-...-8c94104 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidURL

func IsValidURL(absUrl string) bool

Types

type Link struct {
	SourceURL url.URL
	Node      xml.Node
}

func (*Link) AbsDestURL

func (l *Link) AbsDestURL() (URL *url.URL, err error)

func (*Link) DestURL

func (l *Link) DestURL() (*url.URL, error)

may be relative

func (*Link) IsExternal

func (l *Link) IsExternal() (result bool, err error)

func (*Link) IsValid

func (l *Link) IsValid() bool

type Page

type Page struct {
	AbsURL *url.URL
}
func (p *Page) GetLinks() (links []Link, err error)

Jump to

Keyboard shortcuts

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