This commit is contained in:
Manfred Touron
2017-12-19 14:00:29 +01:00
parent 230480afd1
commit 9f831eb4de
11 changed files with 678 additions and 62 deletions

View File

@@ -106,6 +106,10 @@ func indent(spaces int, v string) string {
return pad + strings.Replace(v, "\n", "\n"+pad, -1)
}
func nindent(spaces int, v string) string {
return "\n" + indent(spaces, v)
}
func replace(old, new, src string) string {
return strings.Replace(src, old, new, -1)
}