I learned that Go source is always supposed to have CR line endings, even on Windows.

This commit is contained in:
Don Cross
2023-09-30 22:04:54 -04:00
parent 53f8ae3e45
commit 42e6be60a8
2 changed files with 1 additions and 9 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.go text eol=cr

View File

@@ -30,15 +30,6 @@ for %%f in (..\source\c\astronomy.c ..\source\js\astronomy.js ..\source\python\a
)
echo.Formatting Go code.
for %%f in (
..\source\golang\astronomy.go
..\source\golang\astronomy_test.go
) do (
node eol_hack.js %%f || (
echo.ERROR cleaning newlines in file: %%f
exit /b 1
)
)
cd ..\source\golang
go version || (
echo.FATAL: Cannot find Go compiler.