Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Portfolio ¶
type Portfolio struct { UserID string Investments []Investment Turnips int }
Portfolio represents a user's portfolio complete with investments and turnips
type PortfolioValue ¶
PortfolioValue holds user information for a whole portfolio's value
type SortedPortfolioValue ¶
type SortedPortfolioValue []PortfolioValue
SortedPortfolioValue is the interface used to sort portfolio values
func (SortedPortfolioValue) Len ¶
func (s SortedPortfolioValue) Len() int
Len returns the lenght of the SortedPortfolioValue
func (SortedPortfolioValue) Less ¶
func (s SortedPortfolioValue) Less(i, j int) bool
Less returns true if SortedPortfolioValues at index i is less than index j
func (SortedPortfolioValue) Swap ¶
func (s SortedPortfolioValue) Swap(i, j int)
Swap swaps positions of the SortedPortfolioValues
type Stock ¶
func CheckStock ¶
Click to show internal directories.
Click to hide internal directories.