escapeForDot escapes double quotes and backslashes, and replaces Graphviz's "center" character (\n) with a left-justified character. See https://graphviz.org/docs/attr-types/escString/ for more info.
(str string)
| 490 | // "center" character (\n) with a left-justified character. |
| 491 | // See https://graphviz.org/docs/attr-types/escString/ for more info. |
| 492 | func escapeForDot(str string) string { |
| 493 | return strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(str, `\`, `\\`), `"`, `\"`), "\n", `\l`) |
| 494 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…