mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-05-19 03:23:27 +02:00
day20 part1, dijkstras search with portals/jumps
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@ func ReadFile(pathFromCaller string) string {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// trim off new lines at end of input files
|
||||
// trim off new lines and tabs at end of input files
|
||||
strContent := string(content)
|
||||
return strings.TrimSpace(strContent)
|
||||
return strings.TrimRight(strContent, "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user