Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx context.Context, url string, headers map[string]string, timeout time.Duration) (string, error)
Get is a helper function to make a GET request to the specified URL and return the response body as a string.
func SliceContains ¶
SliceContains tells whether a contains x.
Types ¶
type GoLeakDetector ¶
type GoLeakDetector struct {
// contains filtered or unexported fields
}
GoLeakDetector holds options for the goleak detector.
func NewGoLeakDetector ¶
func NewGoLeakDetector() *GoLeakDetector
NewGoLeakDetector creates a new GoLeakDetector with goleakOptions.
func (*GoLeakDetector) AddIgnoreTopFunctions ¶
func (l *GoLeakDetector) AddIgnoreTopFunctions(fs ...string)
AddIgnoreTopFunctions adds functions to ignore in the leak detector.
func (*GoLeakDetector) FindLeaks ¶
func (l *GoLeakDetector) FindLeaks() error
FindLeaks finds memory leaks in the current process.
Click to show internal directories.
Click to hide internal directories.