part 2 is wild..

This commit is contained in:
alexchao26
2020-02-04 23:07:15 -05:00
parent 01bb15789f
commit 7a2c6de20e
3 changed files with 186 additions and 3 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ func main() {
func readInputFile(path string) []string {
// var pixelString string
pixelSlice := make([]string, 0)
resultSlice := make([]string, 0)
absPath, _ := filepath.Abs(path)
file, err := os.Open(absPath)
@@ -82,11 +82,11 @@ func readInputFile(path string) []string {
for scanner.Scan() {
line := scanner.Text()
// pixelString = line
pixelSlice = append(pixelSlice, line)
resultSlice = append(resultSlice, line)
}
// return pixelString
return pixelSlice
return resultSlice
}
func makeMoonSlice(stringSlice []string) []moon {