MCPcopy Create free account
hub / github.com/goadesign/goa / normalizeLineEndings

Function normalizeLineEndings

codegen/sections_test.go:10–12  ·  view source on GitHub ↗

normalizeLineEndings converts Windows line endings to Unix line endings

(s string)

Source from the content-addressed store, hash-verified

8
9// normalizeLineEndings converts Windows line endings to Unix line endings
10func normalizeLineEndings(s string) string {
11 return strings.ReplaceAll(s, "\r\n", "\n")
12}
13
14func TestHeader(t *testing.T) {
15 const (

Callers 1

TestHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected