tinygo-used-files
is a CLI tool that lists only the files to be built as specified by buildtag.
$ cd /usr/local/lib/tinygo/src/machine/
$ GO111MODULE=off tinygo-used-files --target xiao
adc.go
board_atsamd21.go
board_xiao.go
buffer.go
i2c.go
i2s.go
machine.go
machine_atsamd21.go
machine_atsamd21g18.go
pwm.go
serial-usb.go
serial.go
uart.go
usb.go
$ GO111MODULE=off tinygo-used-files --target wioterminal
adc.go
board_wioterminal.go
buffer.go
i2c.go
i2s.go
machine.go
machine_atsamd51.go
machine_atsamd51p19.go
pwm.go
serial-usb.go
serial.go
uart.go
usb.go
sago35 - [email protected]