File: example_util_test.go

package info (click to toggle)
golang-github-naoina-toml 0.1.1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 416 kB
  • sloc: makefile: 7
file content (10 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
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)
}