fmt is a big dependency, and I'm looking for ways to remove it in my GopherJS-transpiled code. A lot of packages, including yours, pull fmt in just to use fmt.Errorf, when errors.New would do just as well.
All I've done is change the code to use errors. Tests all pass. :)
I may end up using your parser for a JS project I'm writing because the built-in encoding/jsonuses fmt also at present!
fmt
is a big dependency, and I'm looking for ways to remove it in my GopherJS-transpiled code. A lot of packages, including yours, pullfmt
in just to usefmt.Errorf
, whenerrors.New
would do just as well.All I've done is change the code to use
errors
. Tests all pass. :)I may end up using your parser for a JS project I'm writing because the built-in
encoding/json
uses fmt also at present!