This is really cool! The world of templates has always been a frightening departure from the type-safety of Go to the wild world of dynamically typed languages, where run-time errors hid in every code path.
templatecheck helps eliminate a large class of hard-to-find errors. Thanks for writing it! On Sunday, 10 January 2021 at 22:21:00 UTC Jonathan Amsterdam wrote: > The github.com/jba/templatecheck package[0] can validate field references > and other operations of a text/template or html/template in tests or during > program startup. It also works for github.com/google/safehtml/template[1] > <http://github.com/google/safehtml/template%5B1%5D>. > > [0] https://pkg.go.dev/github.com/jba/templatecheck > [1] https://pkg.go.dev/github.com/google/safehtml/template > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b8d35f5b-17b1-4429-ac6b-495eda9453f5n%40googlegroups.com.