---
title: "gopherjs/gopherjs: A compiler from Go to JavaScript for running Go code in a browser"
url: https://daily.dev/posts/gopherjs-gopherjs-a-compiler-from-go-to-javascript-for-running-go-code-in-a-browser-epv4w7er8
source_url: https://github.com/gopherjs/gopherjs
type: article
source: "Community Picks"
published: 2024-05-06T04:43:40.914Z
updated: 2025-12-08T02:17:14.415Z
tags: ["compiler", "frontend", "golang", "javascript"]
reading_time: 6
upvotes: 65
comments: 11
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# gopherjs/gopherjs: A compiler from Go to JavaScript for running Go code in a browser

**[Community Picks](https://daily.dev/sources/community)** · 6 min read · 65 upvotes · 11 comments

## Summary

GopherJS is a Go to JavaScript compiler that allows writing front-end code in Go to run in all browsers. It has support for various Go versions and provides bindings to JavaScript APIs and libraries. GopherJS can be installed using 'go install' command.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/gopherjs/gopherjs>

## Community discussion

Top comments from developers on daily.dev.

**@kpratik2015** · 3 upvotes

> People will do anything to avoid writing JS

**@angelvdev** · 1 upvotes

> Classic "_Compiler from %not_js% to JS_". Love it!

**@leonardomussato** · 1 upvotes

> Yeah, cool project but I don't see the point on doing something like this. Javascript is way easier to write and interact with the DOM so why this? For something similar I would go 100% with RUST that can compile in WASM and has already frameworks like TAURI to better manage the code... Please let me know if you know what is the potential of this :) Anyway, nice project

**@gfregalado** · 1 upvotes

> Why?

**@alexravenna** · 0 upvotes

> "Running Go code in a browser" when it's actually transpiled into a different language and then run...right.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#compiler](https://daily.dev/tags/compiler), [#frontend](https://daily.dev/tags/frontend), [#golang](https://daily.dev/tags/golang), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/gopherjs-gopherjs-a-compiler-from-go-to-javascript-for-running-go-code-in-a-browser-epv4w7er8)
