_time

package
v0.0.1-20220819-0001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Correct

func Correct(format string, datetime string)

func Sleep

func Sleep(

	duration time.Duration,

	times uint64,

	callback func(sleepStatus *SleepStatus),
)

Sleep -> this function should be deprecated... we should use select + time.After instead + context.Done() instaed!

Types

type SleepStatus

type SleepStatus struct {
	Duration time.Duration
	Times    uint64
	Round    uint64
	Break    bool // If you want to break from sleep
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL