From 8469b5cc3c4e51cd6d173718928e221d115fdc8f Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Mon, 30 Jun 2025 10:56:36 +1000 Subject: [PATCH] chore: minor tweak for tinygo There are still reflection issues, but it's a step. --- guesswidth.go | 3 +-- guesswidth_unix.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/guesswidth.go b/guesswidth.go index dfdc3f5..2c19cac 100644 --- a/guesswidth.go +++ b/guesswidth.go @@ -1,5 +1,4 @@ -//go:build appengine || (!linux && !freebsd && !darwin && !dragonfly && !netbsd && !openbsd) -// +build appengine !linux,!freebsd,!darwin,!dragonfly,!netbsd,!openbsd +//go:build tinygo || appengine || (!linux && !freebsd && !darwin && !dragonfly && !netbsd && !openbsd) package kong diff --git a/guesswidth_unix.go b/guesswidth_unix.go index 0170055..7fc5d02 100644 --- a/guesswidth_unix.go +++ b/guesswidth_unix.go @@ -1,5 +1,4 @@ -//go:build (!appengine && linux) || freebsd || darwin || dragonfly || netbsd || openbsd -// +build !appengine,linux freebsd darwin dragonfly netbsd openbsd +//go:build !tinygo && ((!appengine && linux) || freebsd || darwin || dragonfly || netbsd || openbsd) package kong