package marathon import ( "fmt" "strings" ) func formatOutput(body string) string { f := []string{} for _, line := range strings.Split(body, "\n") { line = fmt.Sprintf(" %s", line) f = append(f, line) } f = append(f[:len(f)-1], "") return strings.Join(f, "\n") }