Documentation ¶
Index ¶
- func FormatDuration(d time.Duration) string
- func FormatDurationDays(d time.Duration) string
- func FormatDurationMs(d time.Duration) string
- func FormatTime(t time.Time) string
- func Panic(v ...any)
- func Panicf(format string, v ...any)
- func Recover(onError func(string))
- func Strict(err error, v ...any)
- func StrictFn(err error, fn any)
- func Strictf(err error, format string, v ...any)
- func WaitInterrupt()
- type Time
- func (this Time) Days() (days, hours int)
- func (this Time) Format() string
- func (this Time) FormatDays() string
- func (this Time) FormatMs() string
- func (this *Time) SetDailyHours(h int)
- func (this *Time) SetMinutes(m int)
- func (this *Time) SetNow() *Time
- func (this *Time) SetSeconds(s int)
- func (this *Time) SetTime(t time.Time) *Time
- func (this Time) TotalMinutes() int
- func (this Time) TotalSeconds() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
func FormatDurationDays ¶
func FormatDurationMs ¶
func FormatTime ¶
func WaitInterrupt ¶
func WaitInterrupt()
Types ¶
type Time ¶
func DurationToTime ¶
func (Time) FormatDays ¶
func (*Time) SetDailyHours ¶
func (*Time) SetMinutes ¶
func (*Time) SetSeconds ¶
func (Time) TotalMinutes ¶
func (Time) TotalSeconds ¶
Click to show internal directories.
Click to hide internal directories.