mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
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>
2.7 KiB
2.7 KiB