Go (Golang)
Go (Golang), is an open-source, statically typed, and compiled programming language developed by Google. It is designed for simplicity, efficiency, and strong support for concurrency, making it well-suited for building scalable and high-performance applications.
LiveCodes uses GopherJS which is a Go to JavaScript compiler, to run Go in the browser.
Demo
Usage
LiveCodes runs Go in the browser, including the standard library.
JavaScript interoperability and DOM access is achieved using package js
(see the example below).
Language Info
Name
go
Extensions
go
, golang
Editor
script
Compiler
GopherJS, the Go to JavaScript compiler.
Version
GopherJS v1.19.0 beta1, running Go 1.19.13
Code Formatting
Using GopherJS
Example Usage
This example demonstrates standard library usage, JavaScript interoperability and DOM access:
Starter Template
https://livecodes.io/?template=go
Links
- Go
- Go documentation
- Go standard library
- GopherJS
- Go using Yaegi in LiveCodes