From be766727c179cb6e531ea433edb5616c6929b890 Mon Sep 17 00:00:00 2001 From: xgopilot Date: Sat, 18 Oct 2025 01:12:56 +0000 Subject: [PATCH] feat(demo): add go1.23 build tag to unique demo Added //go:build go1.23 constraint to the unique demo. This allows Go's build system to automatically skip this demo on Go versions older than 1.23, avoiding compilation errors where the unique package doesn't exist. This approach is cleaner than version checking in test scripts and leverages Go's native build tag system. Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: cpunion --- _demo/go/unique/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_demo/go/unique/main.go b/_demo/go/unique/main.go index 64943007..8e28da5a 100644 --- a/_demo/go/unique/main.go +++ b/_demo/go/unique/main.go @@ -1,3 +1,5 @@ +//go:build go1.23 + package main import "unique"