3 ms·
IIRC, the Must.. functions are typically used at program start, and in cases where you would like the program to stop. At least that's the way I've used it. Fo
by gizzlon 2y ago
IIRC, the Must.. functions are typically used at program start, and in cases where you would like the program to stop. At least that's the way I've used it.
For example to read and parse expected templates from disk. If they aren't there, there really is no reason to continue, it's just very very confusing.
https://pkg.go.dev/html/template@go1.24.0#Must https://pkg.go.dev/html/template@go1.24.0#Must