mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
21 lines
301 B
Go
21 lines
301 B
Go
package pdebug
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/lestrrat-go/option"
|
|
)
|
|
|
|
type Option = option.Interface
|
|
|
|
type identClock struct{}
|
|
type identWriter struct{}
|
|
|
|
func WithClock(v Clock) Option {
|
|
return option.New(identClock{}, v)
|
|
}
|
|
|
|
func WithWriter(v io.Writer) Option {
|
|
return option.New(identWriter{}, v)
|
|
}
|