Documentation
¶
Index ¶
Constants ¶
View Source
const ( DateFormat string = "2006-01-02" HumanDateFormat string = "Mon Jan 02 2006" AssignDateFormat string = "02-01-2006" HoursInDay int = 24 DaysInWeek int = 7 DayDuration time.Duration = time.Duration(HoursInDay) * time.Hour WeekDuration time.Duration = DayDuration * time.Duration(DaysInWeek) )
Variables ¶
This section is empty.
Functions ¶
func Close ¶
Simple wrapper for objects that need to be closed. Could be used with defer statement to avoid unhandled error from Close function.
func GetDate ¶
Function that strips hours minutes and seconds from given time.Time. Returns pointer to time.Time object representing only date.
func GetTomorrow ¶
This function returns time.Time object representing tomorrow date.
Types ¶
type PrettyTable ¶
type PrettyTable struct {
Minwidth int
Tabwidth int
Padding int
Padchar byte
// contains filtered or unexported fields
}
func NewPrettyTable ¶
func NewPrettyTable() *PrettyTable
func (*PrettyTable) AddRow ¶
func (pt *PrettyTable) AddRow(row []string)
func (*PrettyTable) String ¶
func (pt *PrettyTable) String() (string, error)
Click to show internal directories.
Click to hide internal directories.