支持的型号
https://tinygo.org/docs/reference/microcontrollers/
下载win版本
https://github.com/tinygo-org/tinygo/releases
新建环境变量
D:\Program_Files\tinygo\bin
验证
tinygo version
在 VSCode 中创建一个新的文件,命名为 hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, TinyGo!")
}
tinygo run hello.go
tinygo build -o hello.exe hello.go