Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stock ¶
type Stock struct { List struct { Resources []struct { Resource struct { Fields struct { Name string `json:"name"` Price string `json:"price"` Symbol string `json:"symbol"` Ts string `json:"ts"` Type string `json:"type"` UTCTime string `json:"utctime"` Volume string `json:"volume"` } `json:"fields"` } `json:"resource"` } `json:"resources"` } `json:"list"` }
func (Stock) GetName ¶
return the stock name
Example ¶
stock, err := GetQuote("aapl") if err != nil { fmt.Printf("Error getting quote: %v", err) } fmt.Println(stock.GetName())
Output: Apple Inc.
Click to show internal directories.
Click to hide internal directories.