OSDN Git Service

9259dc51b4c2d1b8cffc4070ab31efd5ea46dfca
[bytom/vapor.git] / vendor / github.com / lestrrat-go / file-rotatelogs / internal / option / option.go
1 package option
2
3 type Interface interface {
4         Name() string
5         Value() interface{}
6 }
7
8 type Option struct {
9         name  string
10         value interface{}
11 }
12
13 func New(name string, value interface{}) *Option {
14         return &Option{
15                 name:  name,
16                 value: value,
17         }
18 }
19
20 func (o *Option) Name() string {
21         return o.name
22 }
23 func (o *Option) Value() interface{} {
24         return o.value
25 }