service/vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go

26 lines
351 B
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package option
type Interface interface {
Name() string
Value() interface{}
}
type Option struct {
name string
value interface{}
}
func New(name string, value interface{}) *Option {
return &Option{
name: name,
value: value,
}
}
func (o *Option) Name() string {
return o.name
}
func (o *Option) Value() interface{} {
return o.value
}