attempt to improve UX of the error system

Previously we had a few confusing functions like NewT
and similar that were quite fragile to use due to minimal
validation and a panic in go stdlib string Replacer.

Now we generate helper methods for every string, these
are used to access errors, fill in templates and conditional
returns of error type using the new Unless() option

We now get compile time errors for some common mistakes
and have better IDE helpers for arguments etc

Signed-off-by: R.I.Pienaar <rip@devco.net>
This commit is contained in:
R.I.Pienaar
2021-08-04 14:25:20 +02:00
parent b38c361afd
commit 76ab1b8d17
10 changed files with 1693 additions and 417 deletions

File diff suppressed because it is too large Load Diff