MCPcopy Create free account
hub / github.com/Shopify/goose / removeFile

Function removeFile

profiler/ui.go:94–98  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

92}
93
94func removeFile(ctx context.Context, path string) {
95 if err := os.Remove(path); err != nil {
96 log(ctx, err).Error("unable to remove file")
97 }
98}
99
100// inlineFlagset implements the plugin.FlagSet interface.
101// Adapted from testFlags in github.com/google/pprof/internal/driver

Callers 1

pprofUIHandlerFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected