MCPcopy Index your code
hub / github.com/nikivdev/go / stripContinuation

Function stripContinuation

try/dockerlayers/main.go:401–406  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

399}
400
401func stripContinuation(line string) (string, bool) {
402 if strings.HasSuffix(line, "\\") {
403 return strings.TrimSpace(strings.TrimSuffix(line, "\\")), true
404 }
405 return line, false
406}
407
408func removeInlineComment(line string) string {
409 // Docker ignores inline comments preceded by whitespace. We implement a light-weight check.

Callers 1

readInstructionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected