MCPcopy
hub / github.com/grafana/tempo / cleanFileName

Function cleanFileName

tools/chloggen/cmd/new.go:76–79  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

74}
75
76func cleanFileName(filename string) string {
77 replace := strings.NewReplacer("/", "_", "\\", "_")
78 return replace.Replace(filename)
79}

Callers 2

newCmdFunction · 0.85
TestCleanFilenameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCleanFilenameFunction · 0.68