Documentation
¶
Index ¶
- type TimeOption
- type Timer
- func NewTimer(msg string, opts ...TimeOption) *Timer
- func NewTimerF(callback func(), opts ...TimeOption) *Timer
- func NewTimerL(msg string, opts ...typelog.LogType) *Timer
- func NewTimerMF(msg string, callback func(), opts ...TimeOption) *Timer
- func NewTimerMFL(msg string, callback func(), opts ...typelog.LogType) *Timer
- func NewTimerMain(opts ...TimeOption) *Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeOption ¶
type TimeOption func(m *Timer)
func WithLogs ¶
func WithLogs(log_types ...typelog.LogType) TimeOption
func WithMsg ¶
func WithMsg(msg string) TimeOption
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func NewTimer ¶
func NewTimer(msg string, opts ...TimeOption) *Timer
func NewTimerF ¶
func NewTimerF(callback func(), opts ...TimeOption) *Timer
func NewTimerMF ¶
func NewTimerMF(msg string, callback func(), opts ...TimeOption) *Timer
func NewTimerMain ¶
func NewTimerMain(opts ...TimeOption) *Timer
Click to show internal directories.
Click to hide internal directories.