Commit Graph

2 Commits

Author SHA1 Message Date
xgopilot
be766727c1 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>
2025-10-18 01:12:56 +00:00
xgopilot
806449b019 feat(demo): add unique package demo from issue #1358
Added _demo/go/unique with code demonstrating unique.Make usage.
This demo showcases the fix for the compilation panic issue.

Note: The unique package requires full runtime support (weak pointers, etc.)
which is still under development. The test_demo.sh script should be
updated separately to skip this demo on Go 1.23 or earlier.

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <cpunion@users.noreply.github.com>
2025-10-17 23:57:25 +00:00