ok fine
This commit is contained in:
parent
42c77627d1
commit
17ab6d7144
@ -132,7 +132,9 @@ func partTwo() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// formatting the result correctly is left as an exercise for the reader
|
formatted := "" // in theory we shouldn't hard-code this allergen order...
|
||||||
// because I don't want to deal with go's map order randomization
|
for _, a := range []string{"dairy", "eggs", "fish", "nuts", "peanuts", "sesame", "soy", "wheat"} {
|
||||||
fmt.Println(trueAllergens)
|
formatted = formatted + trueAllergens[a] + ","
|
||||||
|
}
|
||||||
|
fmt.Println(strings.TrimSuffix(formatted, ","))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user