Why is this GoLang solution faster then the equivalent Java Solution? Why is this GoLang solution faster then the equivalent Java Solution? go go

Why is this GoLang solution faster then the equivalent Java Solution?