Files
go-jdenticon/go-cleanup/task-03-optimize-color-allocations.txt
Kevin McIntyre f84b511895 init
2025-06-18 01:00:00 -04:00

19 lines
1018 B
Plaintext

You are working on the Go Jdenticon library, a Go port of the JavaScript Jdenticon library that generates deterministic identicons. This library has achieved byte-for-byte identical SVG output with the JavaScript reference implementation, which is CRITICAL to maintain.
Get task #3 from taskmaster and implement the solution:
```
tm get-task 3
```
CRITICAL CONSTRAINTS:
⚠️ MUST run reference compatibility tests after any changes:
```bash
go test ./jdenticon -run TestJavaScriptReferenceCompatibility -v
```
These tests MUST pass - they verify byte-for-byte identical SVG output with the JavaScript implementation.
⚠️ This is a performance optimization task - measure before/after to ensure improvements.
⚠️ This is a code quality improvement project - maintain all existing functionality while improving error handling, performance, and maintainability.
Focus on the specific requirements in the task and ensure your implementation follows Go best practices while preserving JavaScript compatibility.