Documentation ¶
Index ¶
- Constants
- Variables
- func GetDedupedSortedTimeSeriesItemWithSymbol(lines []string, closeTime string, symbolMap map[string]string, ...) ([]*priceutils.TimeSeriesItemWithSymbol, error)
- func GetSortedTimeSeriesItemWithSymbol(lines []string, closeTime string, symbolMap map[string]string) ([]*priceutils.TimeSeriesItemWithSymbol, error)
- func IsWhitespaceOrComment(s string) bool
- func ReadPriceDB(path string) ([]string, error)
- type PriceData
Constants ¶
View Source
const ( DefaultFile = "~/.price.db" DefaultCloseTime = "22:45:00" DateTimeFormat = "2006/01/02 15:04:05" )
Variables ¶
View Source
var ( // overridable for testing GetData = ioutil.ReadFile )
Functions ¶
func GetDedupedSortedTimeSeriesItemWithSymbol ¶
func GetDedupedSortedTimeSeriesItemWithSymbol(lines []string, closeTime string, symbolMap map[string]string, others []*priceutils.TimeSeriesItemWithSymbol) ([]*priceutils.TimeSeriesItemWithSymbol, error)
func GetSortedTimeSeriesItemWithSymbol ¶
func GetSortedTimeSeriesItemWithSymbol(lines []string, closeTime string, symbolMap map[string]string) ([]*priceutils.TimeSeriesItemWithSymbol, error)
func IsWhitespaceOrComment ¶ added in v0.2.0
func ReadPriceDB ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.