dataset

package
v0.0.0-...-93ff30a Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(query Query) ([]dataSetOne, error)

Search through the array of dataSetOne struct and returns the results The rules of the search: If the query for the eleemnt year or state or candidate is empty or the same(for candidate it should just contains the

substring) then its a hit.

Types

type Conf

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

type Query

type Query struct {
	Year      string
	State     string
	Candidate string
}

Query parameters to search though the csv file

Jump to

Keyboard shortcuts

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