MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / writeSectionSpacing

Function writeSectionSpacing

internal/logging/request_logger.go:1092–1099  ·  view source on GitHub ↗
(w io.Writer, trailingNewlines int)

Source from the content-addressed store, hash-verified

1090}
1091
1092func writeSectionSpacing(w io.Writer, trailingNewlines int) error {
1093 missingNewlines := 3 - trailingNewlines
1094 if missingNewlines <= 0 {
1095 return nil
1096 }
1097 _, errWrite := io.WriteString(w, strings.Repeat("\n", missingNewlines))
1098 return errWrite
1099}
1100
1101type trailingNewlineTrackingWriter struct {
1102 writer io.Writer

Callers 5

writeRequestInfoWithBodyFunction · 0.85
writeAPISectionFunction · 0.85
writeAPIErrorResponsesFunction · 0.85

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected