Add TinyGo build example

This commit is contained in:
Zue 2025-07-01 13:28:10 +08:00
parent 384d227efe
commit a9f7cc1ebb
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
//go:build !yq_nojson
package yqlib
import (

4
scripts/build-tinygo-yq.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Currently, the `yq_nojson` feature must be enabled when using TinyGo.
tinygo build -no-debug -tags "yq_nolua yq_noini yq_notoml yq_noxml yq_nojson" .