OSDN Git Service

log into file (#357)
[bytom/vapor.git] / vendor / github.com / lestrrat-go / file-rotatelogs / internal / option / option.go
diff --git a/vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go b/vendor/github.com/lestrrat-go/file-rotatelogs/internal/option/option.go
new file mode 100644 (file)
index 0000000..9259dc5
--- /dev/null
@@ -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
+}