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 <cpunion@users.noreply.github.com>
This commit is contained in:
xgopilot
2025-10-18 01:12:56 +00:00
parent 806449b019
commit be766727c1

View File

@@ -1,3 +1,5 @@
//go:build go1.23
package main package main
import "unique" import "unique"