Documentation ¶ Index ¶ func Search(query Query) ([]dataSetOne, error) type Conf type Query Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Search ¶ 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 Source Files ¶ View all Source files dataset.go Click to show internal directories. Click to hide internal directories.