Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FmtMonthDay = "Jan _2" /* yahoo finance often returns these types of dates */ FmtDayTMonthYear = "_2-Jan-06" /* yahoo finance is quite inconsisten sometimes */ FmtYearMonthDay = "2006-01-02" )
Functions ¶
Types ¶
type NullFloat64 ¶
type NullFloat64 float64
use this type instead of plain float64 if you have a JSON stream which
* sometimes sends quoted floats and sometimes null's for the same field
func (*NullFloat64) UnmarshalJSON ¶
func (n *NullFloat64) UnmarshalJSON(b []byte) error
type NullInt64 ¶
type NullInt64 int64
use this type instead of plain int64 if you have a JSON stream which
* sometimes sends quoted floats and sometimes null's for the same field
func (*NullInt64) UnmarshalJSON ¶
type YearMonthDay ¶
type YearMonthDay JsonTime
func (*YearMonthDay) GetTime ¶
func (jt *YearMonthDay) GetTime() time.Time
func (*YearMonthDay) UnmarshalJSON ¶
func (jt *YearMonthDay) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.