istanbul-tools/vendor/github.com/naoina/toml/example_util_test.go

11 lines
190 B
Go

package toml_test
import (
"strings"
)
func indent(b []byte, spaces int) string {
space := strings.Repeat(" ", spaces)
return space + strings.Replace(string(b), "\n", "\n"+space, -1)
}