Jet Template Engine for GO v5.0.1 Release Notes
Release Date: 2020-08-12 // over 3 years ago-
🛠 Bugfix release: When using discard syntax in a simple "let" assignment, i.e. one where the right side does not return an optional second value like a map lookup for example, the right side wasn't evaluated. For example, these all worked as expected and the right side was evaluated:
_ := myMap["foo"] _ = myMap["foo"] _, ok := myMap["foo"] _, ok = myMap["foo"] _ = foo()
But this did not actually execute
foo()
:_ := foo()
🛠 f67efbc fixes this case and is the only commit in v5.0.1 that isn't in v5.0.0.