If you use Golang, you should use this too!
2 min readDec 5, 2021
Welcome back! Go is an awesome programming language with a ton of capability, if you’re new to this language, check out the link below to learn more about it:
So, what if there was a way to run our Go code in smaller environments? Well, there actually is! With the TinyGo compiler, this is completely possible. Luckily for us, this compiler is hosted on GitHub, check out the link below to learn more about this package:
This compiler is intended to be used in smaller places, they mention microcontrollers, web-assembly, and command line tools as examples. The following is an example of a LED light that blinks:
package main
import (
"machine"
"time"
)
func main() {
led := machine.LED
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()…