From b2b29814bfbe9c94517d0375cfd2ebe915578294 Mon Sep 17 00:00:00 2001
From: Andrey Mirtchovski init function, which will be called before
ParseFile that does not return an error code; instead, it panics
if an error is encountered. A panic is appropriate here; if the templates can't
be loaded the only sensible thing to do is exit the program.
-
func init() {
diff --git a/doc/codelab/wiki/wiki.html b/doc/codelab/wiki/wiki.html
index 3ddbd96b77..7ef97b45ba 100644
--- a/doc/codelab/wiki/wiki.html
+++ b/doc/codelab/wiki/wiki.html
@@ -574,7 +574,7 @@ Then we create an init function, which will be called before
ParseFile that does not return an error code; instead, it panics
if an error is encountered. A panic is appropriate here; if the templates can't
be loaded the only sensible thing to do is exit the program.
-
!./srcextract.bin -src=final.go -name=init
--
2.52.0