lint: fix all major issues
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
20
profiler/noop.go
Normal file
20
profiler/noop.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package profiler
|
||||
|
||||
type noopProfiler struct{}
|
||||
|
||||
func (p *noopProfiler) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *noopProfiler) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *noopProfiler) String() string {
|
||||
return "noop"
|
||||
}
|
||||
|
||||
// NewProfiler returns new noop profiler
|
||||
func NewProfiler(opts ...Option) Profiler {
|
||||
return &noopProfiler{}
|
||||
}
|
Reference in New Issue
Block a user