Also go fmt doesn't ever change your code, thats what go fix is for.
JsFmt also works on the AST. Working on the AST does not mean your rewrite rules can be bulletproof, let alone are.
> Javascript formatters exist but most (all?) work on just strings, not the AST. Using Esprima under the hood we have access to the full AST and can do useful things like intelligent find and replace as in gofmt.
Also go fmt doesn't ever change your code, thats what go fix is for.