MCPcopy
hub / github.com/spf13/cobra / translate

Function translate

doc/man_docs_test.go:35–37  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

33}
34
35func translate(in string) string {
36 return strings.ReplaceAll(in, "-", "\\-")
37}
38
39func TestGenManDoc(t *testing.T) {
40 header := &GenManHeader{

Callers 3

TestGenManDocFunction · 0.85
TestGenManNoGenTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected