Documentation ¶
Index ¶
Constants ¶
View Source
const (
DateFormat = "1/2/2006"
)
View Source
const (
TimestampFormat = "1/2/2006 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
func (*Date) MarshalCSV ¶
Convert the internal date as CSV string
func (*Date) UnmarshalCSV ¶
Convert the CSV string as internal date
type Dates ¶
func (*Dates) MarshalCSV ¶
Convert the internal date as CSV string
func (*Dates) UnmarshalCSV ¶
Convert the CSV string as internal date
type Duration ¶
func (*Duration) MarshalCSV ¶
Convert the internal date as CSV string
func (Duration) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Duration) UnmarshalCSV ¶
Convert the CSV string as internal date
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
type StringSlice ¶ added in v0.0.6
type StringSlice []string
func (*StringSlice) MarshalCSV ¶ added in v0.0.6
func (s *StringSlice) MarshalCSV() (string, error)
Convert the internal date as CSV string
func (*StringSlice) String ¶ added in v0.0.6
func (s *StringSlice) String() string
You could also use the standard Stringer interface
func (*StringSlice) UnmarshalCSV ¶ added in v0.0.6
func (s *StringSlice) UnmarshalCSV(csv string) error
Convert the CSV string as internal date
type Timestamp ¶
func (*Timestamp) MarshalCSV ¶
Convert the internal date as CSV string
func (*Timestamp) UnmarshalCSV ¶
Convert the CSV string as internal date
Click to show internal directories.
Click to hide internal directories.