MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / indent

Function indent

internal/estimate/print.go:905–918  ·  view source on GitHub ↗
(s, prefix string)

Source from the content-addressed store, hash-verified

903}
904
905func indent(s, prefix string) string {
906 out := ""
907 start := 0
908 for i := 0; i < len(s); i++ {
909 if s[i] == '\n' {
910 out += prefix + s[start:i+1]
911 start = i + 1
912 }
913 }
914 if start < len(s) {
915 out += prefix + s[start:]
916 }
917 return out
918}

Callers 3

PrintResultsFunction · 0.85
renderFlatPricesTableFunction · 0.85
renderTieredPricesTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected