lint: fix all major issues
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -111,12 +111,11 @@ func (p *profiler) String() string {
|
||||
return "pprof"
|
||||
}
|
||||
|
||||
func NewProfile(opts ...profile.Option) profile.Profile {
|
||||
var options profile.Options
|
||||
// NewProfile create new profiler
|
||||
func NewProfile(opts ...profile.Option) profile.Profiler {
|
||||
options := profile.Options{}
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
}
|
||||
p := new(profiler)
|
||||
p.opts = options
|
||||
return p
|
||||
return &profiler{opts: options}
|
||||
}
|
||||
|
Reference in New Issue
Block a user