mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
19 lines
230 B
Go
19 lines
230 B
Go
package pdebug
|
|
|
|
import "time"
|
|
|
|
type MarkerGuard interface {
|
|
BindError(*error) MarkerGuard
|
|
End()
|
|
}
|
|
|
|
type Clock interface {
|
|
Now() time.Time
|
|
}
|
|
|
|
type ClockFunc func() time.Time
|
|
|
|
func (cf ClockFunc) Now() time.Time {
|
|
return cf()
|
|
}
|