Closed cassamajor closed 3 weeks ago
Hilariously, the section titled "A disastrous bug" contains a bug itself.
_, err := os.Stat(path)
err := writer.WriteToFile(path, want)
no new variables on left side of :=
This erroneous code seems to only be in the book, not in the code examples in this repository.
Good spotting, @cassamajor, but this has already been fixed—I recommend you upgrade to the latest edition!
https://bitfieldconsulting.com/books/tools
Hilariously, the section titled "A disastrous bug" contains a bug itself.
_, err := os.Stat(path)
err := writer.WriteToFile(path, want)
is left unmodifiedno new variables on left side of :=
This erroneous code seems to only be in the book, not in the code examples in this repository.