You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the readme, there is an example which is shows how to use profile.MemProfileAllocs in the Start function, but the sample is wrong and you'll get an error like
cannot use profile.MemProfileAllocs (type func() func(*profile.Profile)) as type func(*profile.Profile) in argument to profile.Start
And the readme should be p := profile.Start(profile.MemProfileAllocs(), profile.ProfilePath("."), profile.NoShutdownHook)
So if do you confirm it's wrong can I send a PR to fix the readme or the codebase?
The text was updated successfully, but these errors were encountered:
In the readme, there is an example which is shows how to use
profile.MemProfileAllocs
in the Start function, but the sample is wrong and you'll get an error likecannot use profile.MemProfileAllocs (type func() func(*profile.Profile)) as type func(*profile.Profile) in argument to profile.Start
And the readme should be
p := profile.Start(profile.MemProfileAllocs(), profile.ProfilePath("."), profile.NoShutdownHook)
So if do you confirm it's wrong can I send a PR to fix the readme or the codebase?
The text was updated successfully, but these errors were encountered: