byjustice

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultURL = "https://mqscores.lsa.umich.edu/media/2020/justices.csv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Justice

type Justice struct {
	ID     int     `json:"id"`
	Name   string  `json:"name"`
	Mean   float64 `json:"mean"`
	StdDev float64 `json:"stddev"`
	Median float64 `json:"median"`
}

type Term

type Term struct {
	Year     int        `json:"year"`
	Justices []*Justice `json:"justices"`
}

func Read

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

Jump to

Keyboard shortcuts

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