Skip to main content

tinygo

Use this skill when the user wants to compile Go for microcontrollers, WebAssembly, or constrained environments — smaller binaries than standard Go with board-specific targets.

来源信息

仓库
javimosch/supercli
最近来源活动
2026年7月20日 22:58
检测到的 SKILL.md 语言
英语
星标
51
Forks
7

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
tinygo
description
Use this skill when the user wants to compile Go for microcontrollers, WebAssembly, or constrained environments — smaller binaries than standard Go with board-specific targets.
# tinygo Plugin TinyGo is a Go compiler for microcontrollers, WebAssembly, and systems with tight memory limits. Produces smaller binaries than `go build` and supports dozens of embedded boards. ## Installation ```bash brew install tinygo # or download from https://tinygo.org/getting-started/ ``` ## Basic Usage ```bash # Check version and supported targets tinygo version # Build for WebAssembly tinygo build -o app.wasm -target=wasm main.go # Flash to a microcontroller (example: Arduino Nano 33) tinygo flash -target=arduino-nano33 main.go ``` ## Common Patterns ```bash # List available boards/targets tinygo targets # Build with size optimization tinygo build -size=short -o firmware.elf main.go # Run on host (simulator) tinygo run main.go ``` ## Usage Examples - "Compile this Go program to WebAssembly with tinygo" - "Flash firmware to an Arduino Nano 33" - "List tinygo supported targets" ## SuperCLI ```bash sc tinygo _ _ version sc tinygo _ _ build -o out.wasm -target=wasm main.go sc plugins learn tinygo ```
在 GitHub 查看