How do you figure this. Javascript got TypeScripted because it was forced on us by browsers.
Is there an equivalent api that forces the use of Go? None that I know of. Maybe there are some domains where you need access to specialized Go packages that would be hard to recreate in another language. I see that sometimes with C and C++, but I haven’t seen it with Go.
As a happy Gopher, I’m aware I probably have blind spots about this.
Go provides excellent packaging, and runtime with good gc and goroutines. Those are some of the biggest investments to be made for a language.
Imagine you want all those three features without the original syntax vomit. Transpiling is a great way to leverage the underlying engine. Similar to how many other languages build on top of LLVM.
So while there is no strict lockin as js had with browsers, achieving a runtime on par with go is a huge moat to cross on your own.
https://github.com/goplus/gop