parser

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	URL string
}

func (Page) GetSource

func (p Page) GetSource() (*html.Node, error)

type Parser

type Parser interface {
	GetSource() (*html.Node, error)
}

type RaceWeekend

type RaceWeekend struct {
	Location       string
	RaceName       string
	Circuit        string
	FP1            bool
	FP2            bool
	FP3            bool
	SprintShootout bool
	Sprint         bool
	Qualifying     bool
	Race           bool
}

func NewRaceWeekend

func NewRaceWeekend() RaceWeekend

func ParseScheduleSource

func ParseScheduleSource(n *html.Node, location, year string) RaceWeekend

type Results

type Results map[string]int

func ParseResultSource

func ParseResultSource(n *html.Node) (Results, error)

Jump to

Keyboard shortcuts

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