foodratingsystem

package
v0.0.0-...-276c0a7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FoodItem

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

type FoodItemPQ

type FoodItemPQ []*FoodItem

func (FoodItemPQ) Len

func (f FoodItemPQ) Len() int

func (FoodItemPQ) Less

func (f FoodItemPQ) Less(i, j int) bool

func (*FoodItemPQ) Pop

func (f *FoodItemPQ) Pop() any

func (*FoodItemPQ) Push

func (f *FoodItemPQ) Push(x any)

func (FoodItemPQ) Swap

func (f FoodItemPQ) Swap(i, j int)

type FoodRatings

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

func Constructor

func Constructor(foods []string, cuisines []string, ratings []int) FoodRatings

func (*FoodRatings) ChangeRating

func (f *FoodRatings) ChangeRating(food string, newRating int)

func (*FoodRatings) HighestRated

func (f *FoodRatings) HighestRated(cuisine string) string

Jump to

Keyboard shortcuts

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