Documentation
¶
Overview ¶
Package dateseq creates a sequence series of daily dates
Index ¶
- type Sequence
- func (s Sequence) Asc() Sequence
- func (s Sequence) Desc() Sequence
- func (s Sequence) ExclWeekends() Sequence
- func (s Sequence) Format(layout string) []string
- func (s Sequence) InclWeekends() Sequence
- func (s Sequence) Seq() []time.Time
- func (s Sequence) Steps(i int) Sequence
- func (s Sequence) String() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
Sequence represents a slice of dates.
func (Sequence) Asc ¶ added in v0.1.2
Asc sorts a slice of dates in ascending order, i.e. 2006-01-02 comes before 2006-01-03
func (Sequence) Desc ¶ added in v0.1.2
Desc sorts a slice of dates in descending order, i.e. 2006-01-01 comes after 2006-01-02
func (Sequence) ExclWeekends ¶
ExclWeekends excludes Saturday and Sunday from the sequence. This is the default setting for weekends.
func (Sequence) Format ¶ added in v0.1.3
Format returns the sequence as slice with a string repesentation of the date in the specified layout.
func (Sequence) InclWeekends ¶
InclWeekends includes Saturday and Sunday into the sequence.
Click to show internal directories.
Click to hide internal directories.