Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct { // Informative, human readable name Name string // Unique ticker identifying the stock shares Ticker string // Date of purchase - use special type to allow easier unmarshalling Date MyTime // Historical/average purchase price Price float64 // number of shares Volume float64 }
Line defines a line of the shares portfolio as they are described in the mystock.json file
type MyTime ¶
MyTime wraps the time.Time object so that it can be unmarshalled to json using different layout.
func (*MyTime) MarshalJSON ¶
MarshalJSON in simplified format.
func (*MyTime) UnmarshalJSON ¶
UnmarshalJSON let MyTime be Unmarshalled in a flexible way.
Click to show internal directories.
Click to hide internal directories.