fixed dependencies
This commit is contained in:
25
vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go
generated
vendored
Normal file
25
vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user