Cleanup go mod

This commit is contained in:
Asim Aslam
2019-12-18 16:12:25 +00:00
parent f0e841595c
commit 2338e7c9d2
6 changed files with 100 additions and 40 deletions

23
debug/log/noop/noop.go Normal file
View File

@@ -0,0 +1,23 @@
package noop
import (
"github.com/micro/go-micro/debug/log"
)
type noop struct{}
func (n *noop) Read(...log.ReadOption) ([]log.Record, error) {
return nil, nil
}
func (n *noop) Write(log.Record) error {
return nil
}
func (n *noop) Stream() (log.Stream, error) {
return nil, nil
}
func NewLog(opts ...log.Option) log.Log {
return new(noop)
}