dilbert

package
v0.0.0-...-1116213 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBaseURL

func SetBaseURL(url string)

SetBaseURL overrides the base URL for testing.

Types

type Comic

type Comic struct {
	Date     string `json:"date"`
	Title    string `json:"title"`
	ImageURL string `json:"image_url"`
	StripURL string `json:"strip_url"`
}

Comic describes a Dilbert comic strip.

func ScrapeComic

func ScrapeComic(ctx context.Context, date string) (*Comic, error)

ScrapeComic gets the Dilbert comic strip for the given date.

Jump to

Keyboard shortcuts

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