resource

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

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

func ResourceFromID

func ResourceFromID[T constraints.Integer](id T) Resource

func ResourceFromURL

func ResourceFromURL[T ~string](url T) Resource

func (*Resource) Breadcrumbs

func (r *Resource) Breadcrumbs() ([]string, error)

func (*Resource) Doc

func (r *Resource) Doc() (*goquery.Document, error)

func (*Resource) ID

func (r *Resource) ID() (int, error)

func (*Resource) Timestamp

func (r *Resource) Timestamp() (string, error)

func (*Resource) Title

func (r *Resource) Title() (string, error)

func (*Resource) URL

func (r *Resource) URL() (string, bool)

func (*Resource) Updated

func (r *Resource) Updated() (time.Time, error)

Jump to

Keyboard shortcuts

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