segalcover

package
v0.0.0-...-e97ee80 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultURL = `https://en.wikipedia.org/wiki/Segal%E2%80%93Cover_score`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Justice

type Justice struct {
	Name          string     `json:"name"`
	Chief         bool       `json:"as_chief"`
	Ideology      float64    `json:"ideology"`
	YearNominated int        `json:"year_nominated"`
	NominatedBy   *President `json:"nominated_by"`
}

func Read

func Read(
	ctx context.Context,
	opts ...option.DownloadOption,
) ([]*Justice, error)

type Party

type Party string
const (
	Republican Party = "R"
	Democrat   Party = "D"
	Unknown    Party = "?"
)

type President

type President struct {
	Name  string `json:"name"`
	Party Party  `json:"party"`
}

Jump to

Keyboard shortcuts

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